/* WooCommerce Pages Styles */

/* Page Wrappers */
.monkeyboy-cart-wrapper,
.monkeyboy-checkout-wrapper,
.monkeyboy-account-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ================================================
   CART PAGE - RPG INVENTORY STYLE
   ================================================ */

/* Page Title */
.monkeyboy-cart-wrapper .page-title,
.monkeyboy-checkout-wrapper .page-title {
    font-family: 'Cinzel', serif;
    color: #d4a856;
    font-size: 1.6rem;
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(255, 150, 50, 0.2);
    display: flex;
    align-items: center;
}

/* Cart Items List */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

/* Cart Item Card */
.cart-item-card {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto auto;
    gap: 15px;
    align-items: center;
    background: linear-gradient(180deg, #1e1a15 0%, #151210 100%);
    border: 2px solid #3d3428;
    border-left: 4px solid #9d9d9d;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.cart-item-card:hover {
    border-color: #5a4d3a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Rarity left border colors */
.cart-item-card.rarity-common    { border-left-color: #9d9d9d; }
.cart-item-card.rarity-uncommon  { border-left-color: #1eff00; }
.cart-item-card.rarity-rare      { border-left-color: #0070dd; }
.cart-item-card.rarity-epic      { border-left-color: #a335ee; }
.cart-item-card.rarity-legendary {
    border-left-color: #ff8000;
    box-shadow: 0 0 15px rgba(255, 128, 0, 0.1);
}

/* Thumbnail */
.cart-item-thumbnail {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 6px;
    border: 2px solid #3d3428;
    flex-shrink: 0;
}

.cart-item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-item-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Item Info */
.cart-item-info {
    min-width: 0;
}

.cart-item-name {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    margin-bottom: 4px;
}

.cart-item-name a {
    color: #d4a856;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cart-item-name a:hover {
    color: #f0c060;
    text-shadow: 0 0 10px rgba(212, 168, 86, 0.3);
}

/* Rarity Badge */
.cart-item-rarity-badge {
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 2px 8px;
    border-radius: 3px;
    line-height: 1.4;
}

.cart-item-rarity-badge.rarity-common {
    color: #9d9d9d;
    background: rgba(157, 157, 157, 0.1);
    border: 1px solid rgba(157, 157, 157, 0.2);
}

.cart-item-rarity-badge.rarity-uncommon {
    color: #1eff00;
    background: rgba(30, 255, 0, 0.1);
    border: 1px solid rgba(30, 255, 0, 0.2);
}

.cart-item-rarity-badge.rarity-rare {
    color: #0070dd;
    background: rgba(0, 112, 221, 0.1);
    border: 1px solid rgba(0, 112, 221, 0.2);
}

.cart-item-rarity-badge.rarity-epic {
    color: #a335ee;
    background: rgba(163, 53, 238, 0.1);
    border: 1px solid rgba(163, 53, 238, 0.2);
}

.cart-item-rarity-badge.rarity-legendary {
    color: #ff8000;
    background: rgba(255, 128, 0, 0.1);
    border: 1px solid rgba(255, 128, 0, 0.2);
    text-shadow: 0 0 8px rgba(255, 128, 0, 0.4);
}

/* Price & Subtotal */
.cart-item-price,
.cart-item-subtotal {
    text-align: center;
    white-space: nowrap;
}

.cart-item-price-label,
.cart-item-subtotal-label {
    display: block;
    font-size: 0.7rem;
    color: #5a4d3a;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.cart-item-price .woocommerce-Price-amount,
.cart-item-subtotal .woocommerce-Price-amount {
    color: #ffd700;
    font-weight: 600;
    font-size: 1rem;
}

/* Quantity wrapper in cart */
.cart-item-card .quantity-wrapper {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #3d3428;
    border-radius: 6px;
    overflow: hidden;
}

.cart-item-card .qty-btn {
    width: 32px;
    height: 32px;
    background: linear-gradient(180deg, #252018 0%, #1a1612 100%);
    border: none;
    color: #d4a856;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-card .qty-btn:hover {
    background: linear-gradient(180deg, #3d3428 0%, #2d251c 100%);
}

.cart-item-card .qty-input {
    width: 40px;
    background: transparent;
    border: none;
    color: #c4b89a;
    text-align: center;
    font-size: 0.95rem;
    font-family: 'Rajdhani', sans-serif;
    -moz-appearance: textfield;
}

.cart-item-card .qty-input::-webkit-inner-spin-button,
.cart-item-card .qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-item-card .qty-input:focus {
    outline: none;
}

/* Remove Button */
.cart-item-remove-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    color: #5a4d3a;
    transition: all 0.2s ease;
    text-decoration: none;
}

.cart-item-remove:hover {
    color: #e63946;
    background: rgba(230, 57, 70, 0.1);
}

/* Cart Actions Row */
.cart-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

/* Coupon Section */
.cart-coupon-section {
    background: linear-gradient(180deg, #1e1a15 0%, #151210 100%);
    border: 2px solid #3d3428;
    border-radius: 8px;
    padding: 15px 20px;
    flex: 1;
    max-width: 400px;
}

.cart-coupon-section .section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    color: #b8a070;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cart-coupon-section .section-title svg {
    color: #d4a856;
}

.cart-coupon-section .coupon {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cart-coupon-section .coupon input.input-text {
    background: linear-gradient(145deg, #110f0b 0%, #0a0908 100%);
    border: 2px solid #2d251c;
    border-radius: 5px;
    color: #c4b89a;
    padding: 8px 12px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    flex: 1;
}

.cart-coupon-section .coupon input.input-text:focus {
    outline: none;
    border-color: #b8a070;
}

.coupon-btn {
    background: linear-gradient(180deg, #4a3d2e 0%, #3a3020 100%) !important;
    border: 1px solid #6a5a42 !important;
    border-radius: 5px !important;
    color: #f0d080 !important;
    font-family: 'Cinzel', serif !important;
    font-size: 0.8rem !important;
    padding: 8px 16px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 1px;
    white-space: nowrap;
}

.coupon-btn:hover {
    background: linear-gradient(180deg, #5a4d3a 0%, #4a3d2e 100%) !important;
    border-color: #d4a856 !important;
    color: #ffe0a0 !important;
}

/* Update Cart Button */
.update-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(180deg, #252018 0%, #1a1612 100%) !important;
    border: 1px solid #3d3428 !important;
    border-radius: 5px !important;
    color: #8a7a60 !important;
    font-family: 'Cinzel', serif !important;
    font-size: 0.8rem !important;
    padding: 10px 18px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 1px;
}

.update-cart-btn:hover {
    color: #d4a856 !important;
    border-color: #5a4d3a !important;
}

.update-cart-btn svg {
    opacity: 0.7;
}

/* Cart Totals */
.cart_totals {
    background: linear-gradient(180deg, #1e1a15 0%, #151210 100%);
    border: 2px solid #3d3428;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
}

.cart_totals h2 {
    font-family: 'Cinzel', serif;
    color: #d4a856;
    font-size: 1.3rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.cart_totals .shop_table {
    border: none;
    background: transparent;
}

.cart_totals .shop_table th,
.cart_totals .shop_table td {
    padding: 10px 0;
    border-bottom: 1px solid rgba(61, 52, 40, 0.5);
    color: #c4b89a;
}

.cart_totals .shop_table th {
    color: #8a7a60;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cart_totals .order-total th,
.cart_totals .order-total td {
    font-size: 1.2rem;
    color: #ffd700;
    border-bottom: none;
}

.wc-proceed-to-checkout {
    padding-top: 20px;
}

.wc-proceed-to-checkout .checkout-button {
    width: 100%;
    text-align: center;
    background: linear-gradient(180deg, #d4a856 0%, #b8860b 100%) !important;
    color: #1a1510 !important;
    border: 2px solid #d4a856 !important;
    border-radius: 6px !important;
    font-family: 'Cinzel', serif !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    letter-spacing: 2px !important;
    padding: 15px 30px !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wc-proceed-to-checkout .checkout-button:hover {
    background: linear-gradient(180deg, #f0c060 0%, #d4a856 100%) !important;
    box-shadow: 0 0 25px rgba(212, 168, 86, 0.5);
    transform: translateY(-1px);
}

/* ================================================
   EMPTY CART
   ================================================ */

.empty-cart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    min-height: 50vh;
}

.empty-cart-icon {
    margin-bottom: 25px;
    opacity: 0.6;
}

.empty-cart-title {
    font-family: 'Cinzel', serif;
    color: #d4a856;
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.empty-cart-text {
    color: #8a7a60;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 400px;
    margin-bottom: 30px;
}

.empty-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(180deg, #d4a856 0%, #b8860b 100%);
    border: 2px solid #d4a856;
    border-radius: 6px;
    color: #1a1510;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.empty-cart-btn:hover {
    background: linear-gradient(180deg, #f0c060 0%, #d4a856 100%);
    box-shadow: 0 0 25px rgba(212, 168, 86, 0.5);
    transform: translateY(-2px);
    color: #1a1510;
}

/* ================================================
   CHECKOUT PAGE - RPG STYLE
   ================================================ */

.woocommerce-checkout #customer_details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.woocommerce-checkout .col-1,
.woocommerce-checkout .col-2 {
    background: linear-gradient(180deg, #1e1a15 0%, #151210 100%);
    border: 2px solid #3d3428;
    border-radius: 8px;
    padding: 25px;
}

/* Checkout Panel Headers */
.checkout-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cinzel', serif;
    color: #d4a856;
    font-size: 1rem;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(180, 140, 80, 0.2);
}

.checkout-panel-header svg {
    color: #d4a856;
    flex-shrink: 0;
}

.checkout-panel-header span {
    text-transform: uppercase;
}

/* Hide the default WooCommerce h3 in checkout since we have panel headers */
.woocommerce-checkout .col-1 > h3:first-of-type,
.woocommerce-checkout .col-2 > h3:first-of-type {
    display: none;
}

.woocommerce-checkout h3 {
    font-family: 'Cinzel', serif;
    color: #d4a856;
    font-size: 1.1rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

#order_review_heading {
    font-family: 'Cinzel', serif;
    color: #d4a856;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

#order_review {
    background: linear-gradient(180deg, #1e1a15 0%, #151210 100%);
    border: 2px solid #3d3428;
    border-radius: 8px;
    padding: 25px;
}

/* Review Order Table */
.woocommerce-checkout-review-order-table {
    margin-bottom: 20px;
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-checkout-review-order-table thead th {
    color: #8a7a60;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(61, 52, 40, 0.5);
    text-align: left;
}

.woocommerce-checkout-review-order-table thead th.product-total {
    text-align: right;
}

.woocommerce-checkout-review-order-table tbody td {
    padding: 10px 0;
    border-bottom: 1px solid rgba(61, 52, 40, 0.3);
    color: #c4b89a;
    font-size: 0.9rem;
}

.woocommerce-checkout-review-order-table tbody td.product-total {
    text-align: right;
    color: #ffd700;
}

.woocommerce-checkout-review-order-table tbody .product-name .product-quantity {
    color: #8a7a60;
}

.woocommerce-checkout-review-order-table tfoot th {
    color: #8a7a60;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(61, 52, 40, 0.3);
    text-align: left;
}

.woocommerce-checkout-review-order-table tfoot td {
    padding: 10px 0;
    border-bottom: 1px solid rgba(61, 52, 40, 0.3);
    color: #c4b89a;
    text-align: right;
}

.woocommerce-checkout-review-order-table tfoot .order-total th,
.woocommerce-checkout-review-order-table tfoot .order-total td {
    font-size: 1.1rem;
    color: #ffd700;
    border-bottom: none;
    padding-top: 15px;
}

/* Review Item Rarity Dot */
.review-item-rarity-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    flex-shrink: 0;
}

.review-item-rarity-dot.rarity-common    { background-color: #9d9d9d; }
.review-item-rarity-dot.rarity-uncommon  { background-color: #1eff00; box-shadow: 0 0 4px rgba(30, 255, 0, 0.4); }
.review-item-rarity-dot.rarity-rare      { background-color: #0070dd; box-shadow: 0 0 4px rgba(0, 112, 221, 0.4); }
.review-item-rarity-dot.rarity-epic      { background-color: #a335ee; box-shadow: 0 0 4px rgba(163, 53, 238, 0.4); }
.review-item-rarity-dot.rarity-legendary { background-color: #ff8000; box-shadow: 0 0 6px rgba(255, 128, 0, 0.5); }

/* Payment Methods */
#payment {
    background: transparent;
}

#payment .payment_methods {
    border: none;
    padding: 0;
    margin-bottom: 20px;
}

#payment .payment_methods li {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid #3d3428;
    border-radius: 5px;
    margin-bottom: 10px;
    padding: 15px;
    transition: border-color 0.2s ease;
}

#payment .payment_methods li:hover {
    border-color: #5a4d3a;
}

#payment .payment_methods li label {
    color: #c4b89a;
    cursor: pointer;
}

#payment .payment_box {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    padding: 15px;
    margin-top: 10px;
    color: #8a7a60;
}

/* Place Order Button */
#place_order {
    width: 100%;
    background: linear-gradient(180deg, #d4a856 0%, #b8860b 100%) !important;
    color: #1a1510 !important;
    border: 2px solid #d4a856 !important;
    border-radius: 6px !important;
    font-family: 'Cinzel', serif !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    letter-spacing: 2px !important;
    padding: 18px 30px !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

#place_order:hover {
    background: linear-gradient(180deg, #f0c060 0%, #d4a856 100%) !important;
    box-shadow: 0 0 25px rgba(212, 168, 86, 0.5);
    transform: translateY(-1px);
}

/* Checkout Form Fields */
.woocommerce-checkout .form-row label {
    color: #8a7a60;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea {
    background: linear-gradient(145deg, #110f0b 0%, #0a0908 100%);
    border: 2px solid #2d251c;
    border-radius: 5px;
    color: #c4b89a;
    padding: 10px 14px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus {
    outline: none;
    border-color: #b8a070;
    box-shadow: 0 0 10px rgba(184, 160, 112, 0.15);
}

/* Select2 Styling for Checkout Dropdowns */
.woocommerce-checkout .select2-container--default .select2-selection--single {
    background: linear-gradient(145deg, #110f0b 0%, #0a0908 100%);
    border: 2px solid #2d251c;
    border-radius: 5px;
    height: 42px;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #c4b89a;
    font-family: 'Rajdhani', sans-serif;
    line-height: 38px;
    padding-left: 14px;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #8a7a60 transparent transparent transparent;
}

.select2-dropdown {
    background: #110f0b;
    border: 2px solid #2d251c;
    border-radius: 5px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    background: #0a0908;
    border: 1px solid #2d251c;
    color: #c4b89a;
    padding: 8px;
}

.select2-container--default .select2-results__option {
    color: #c4b89a;
    padding: 8px 14px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: rgba(212, 168, 86, 0.2);
    color: #d4a856;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background: rgba(212, 168, 86, 0.1);
    color: #d4a856;
}

/* My Account Page */
.woocommerce-MyAccount-navigation {
    float: none;
    width: 100%;
    margin-bottom: 30px;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
}

.woocommerce-MyAccount-navigation ul li {
    margin: 0;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 12px 20px;
    background: linear-gradient(180deg, #252018 0%, #1a1612 100%);
    border: 1px solid #3d3428;
    border-radius: 5px;
    color: #8a7a60;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a {
    background: linear-gradient(180deg, #3d3428 0%, #2d251c 100%);
    color: #d4a856;
    border-color: #5a4d3a;
}

.woocommerce-MyAccount-content {
    float: none;
    width: 100%;
    background: linear-gradient(180deg, #1e1a15 0%, #151210 100%);
    border: 2px solid #3d3428;
    border-radius: 8px;
    padding: 30px;
}

/* Login / Register Forms */
.woocommerce-form-login,
.woocommerce-form-register {
    background: linear-gradient(180deg, #1e1a15 0%, #151210 100%);
    border: 2px solid #3d3428;
    border-radius: 8px;
    padding: 30px;
    max-width: 400px;
}

.u-columns {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.u-columns .u-column1,
.u-columns .u-column2 {
    flex: 1;
    min-width: 300px;
}

/* Single Product Page */
.single-product-page {
    max-width: 1000px;
    margin: 0 auto;
}

.single-product-page .product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.single-product-page .woocommerce-product-gallery {
    background: linear-gradient(180deg, #1e1a15 0%, #151210 100%);
    border: 2px solid #3d3428;
    border-radius: 8px;
    padding: 20px;
}

.single-product-page .woocommerce-product-gallery img {
    border-radius: 5px;
}

.single-product-page .summary {
    background: linear-gradient(180deg, #1e1a15 0%, #151210 100%);
    border: 2px solid #3d3428;
    border-radius: 8px;
    padding: 30px;
}

.single-product-page .product_title {
    font-family: 'Cinzel', serif;
    color: #d4a856;
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(255, 150, 50, 0.3);
}

.single-product-page .price {
    font-size: 1.5rem;
    color: #ffd700;
    margin-bottom: 20px;
}

.single-product-page .woocommerce-product-details__short-description {
    color: #c4b89a;
    line-height: 1.6;
    margin-bottom: 25px;
}

.single-product-page .single_add_to_cart_button {
    background: linear-gradient(180deg, #d4a856 0%, #b8860b 100%) !important;
    color: #1a1510 !important;
    border-color: #d4a856 !important;
    padding: 15px 30px !important;
}

.single-product-page .single_add_to_cart_button:hover {
    background: linear-gradient(180deg, #f0c060 0%, #d4a856 100%) !important;
    box-shadow: 0 0 20px rgba(212, 168, 86, 0.4);
}

/* Product Tabs */
.woocommerce-tabs {
    margin-top: 40px;
}

.woocommerce-tabs ul.tabs {
    list-style: none;
    display: flex;
    gap: 0;
    padding: 0;
    margin-bottom: 0;
    border-bottom: 2px solid #3d3428;
}

.woocommerce-tabs ul.tabs li {
    margin: 0;
    background: linear-gradient(180deg, #252018 0%, #1a1612 100%);
    border: 1px solid #3d3428;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
}

.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 12px 25px;
    color: #8a7a60;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.woocommerce-tabs ul.tabs li.active {
    background: linear-gradient(180deg, #3d3428 0%, #2d251c 100%);
}

.woocommerce-tabs ul.tabs li.active a {
    color: #d4a856;
}

.woocommerce-tabs .panel {
    background: linear-gradient(180deg, #1e1a15 0%, #151210 100%);
    border: 2px solid #3d3428;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 25px;
    color: #c4b89a;
}

/* Related Products */
.related.products {
    margin-top: 50px;
}

.related.products h2 {
    font-family: 'Cinzel', serif;
    color: #d4a856;
    font-size: 1.3rem;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.related.products ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
}

.related.products ul.products li.product {
    background: linear-gradient(180deg, #1e1a15 0%, #151210 100%);
    border: 2px solid #3d3428;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.2s ease;
}

.related.products ul.products li.product:hover {
    border-color: #5a4d3a;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.related.products ul.products li.product img {
    border-radius: 5px;
    margin-bottom: 10px;
}

.related.products ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Cinzel', serif;
    color: #d4a856;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.related.products ul.products li.product .price {
    color: #ffd700;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    /* Cart responsive */
    .cart-item-card {
        grid-template-columns: 70px 1fr;
        gap: 10px;
    }

    .cart-item-thumbnail {
        width: 70px;
        height: 70px;
        grid-row: span 2;
    }

    .cart-item-info {
        grid-column: 2;
    }

    .cart-item-price,
    .cart-item-subtotal {
        text-align: left;
    }

    .cart-item-price-label,
    .cart-item-subtotal-label {
        display: inline;
        margin-right: 6px;
    }

    .cart-item-quantity {
        grid-column: 1 / -1;
        display: flex;
        justify-content: center;
    }

    .cart-item-remove-wrap {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .cart-item-card {
        position: relative;
        padding-right: 45px;
    }

    .cart-actions-row {
        flex-direction: column;
        align-items: stretch;
    }

    .cart-coupon-section {
        max-width: none;
    }

    .update-cart-btn {
        align-self: flex-end;
    }

    /* Checkout responsive */
    .woocommerce-checkout #customer_details {
        grid-template-columns: 1fr;
    }

    .single-product-page .product {
        grid-template-columns: 1fr;
    }

    .related.products ul.products {
        grid-template-columns: repeat(2, 1fr);
    }

    .u-columns {
        flex-direction: column;
    }

    .woocommerce-MyAccount-navigation ul {
        flex-direction: column;
    }

    .woocommerce-MyAccount-navigation ul li a {
        text-align: center;
    }

    .monkeyboy-cart-wrapper .page-title,
    .monkeyboy-checkout-wrapper .page-title {
        font-size: 1.3rem;
    }

    .empty-cart-container {
        padding: 40px 15px;
    }

    .empty-cart-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .related.products ul.products {
        grid-template-columns: 1fr;
    }

    .monkeyboy-cart-wrapper,
    .monkeyboy-checkout-wrapper,
    .monkeyboy-account-wrapper {
        padding: 15px 10px;
    }

    .cart-item-card {
        padding: 12px;
        padding-right: 40px;
    }

    .cart-item-thumbnail {
        width: 60px;
        height: 60px;
    }

    .cart-item-name {
        font-size: 0.9rem;
    }

    .cart-item-rarity-badge {
        font-size: 0.6rem;
    }

    .checkout-panel-header {
        font-size: 0.85rem;
    }

    .woocommerce-checkout .col-1,
    .woocommerce-checkout .col-2 {
        padding: 15px;
    }

    #order_review {
        padding: 15px;
    }

    .empty-cart-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ================================================
   CUSTOM RPG PRODUCT PAGE
   ================================================ */

.product-page-container {
    min-height: 100vh;
    padding: 20px;
    padding-top: 60px;
    background: linear-gradient(135deg, #151515 0%, #0f0f0f 50%, #151515 100%);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Back Button */
.back-to-inventory {
    position: fixed;
    top: 15px;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(145deg, #2a231a 0%, #1a1510 100%);
    border: 1px solid #4a3f2f;
    border-radius: 5px;
    color: #8a7a60;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s ease;
    z-index: 100;
}

.back-to-inventory svg {
    width: 16px;
    height: 16px;
}

.back-to-inventory:hover {
    color: #d4a856;
    border-color: #d4a856;
    box-shadow: 0 0 15px rgba(212, 168, 86, 0.3);
}

/* Main Layout */
.product-page-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ========== GALLERY / CAROUSEL ========== */
.product-gallery {
    background: linear-gradient(180deg, #1e1a15 0%, #151210 100%);
    border: 2px solid #4a3f2f;
    border-radius: 10px;
    padding: 15px;
    position: sticky;
    top: 80px;
    max-width: 500px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.gallery-main {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 100%;
}

.product-carousel {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.product-carousel .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-image-wrapper {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: radial-gradient(ellipse at center, rgba(255, 150, 50, 0.08) 0%, transparent 70%);
}

.slide-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

.slide-image-wrapper.no-image {
    color: #5a4d3a;
    font-family: 'Cinzel', serif;
}

/* Swiper Navigation */
.product-carousel .swiper-button-prev,
.product-carousel .swiper-button-next {
    width: 36px;
    height: 36px;
    background: rgba(26, 21, 16, 0.9);
    border: 1px solid #4a3f2f;
    border-radius: 50%;
    color: #d4a856;
    transition: all 0.2s ease;
}

.product-carousel .swiper-button-prev:after,
.product-carousel .swiper-button-next:after {
    font-size: 14px;
    font-weight: bold;
}

.product-carousel .swiper-button-prev:hover,
.product-carousel .swiper-button-next:hover {
    background: rgba(212, 168, 86, 0.2);
    border-color: #d4a856;
}

.product-carousel .swiper-pagination {
    bottom: 10px;
}

.product-carousel .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #4a3f2f;
    opacity: 1;
}

.product-carousel .swiper-pagination-bullet-active {
    background: #d4a856;
    box-shadow: 0 0 10px rgba(212, 168, 86, 0.5);
}

/* Thumbnails */
.gallery-thumbs {
    margin-top: 10px;
}

.thumbs-carousel .swiper-slide {
    width: 60px;
    height: 60px;
    border: 2px solid #3d3428;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.thumbs-carousel .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbs-carousel .swiper-slide:hover,
.thumbs-carousel .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #d4a856;
}

/* ========== PRODUCT INFO ========== */
.product-info {
    background: linear-gradient(180deg, #1e1a15 0%, #151210 100%);
    border: 2px solid #4a3f2f;
    border-radius: 10px;
    padding: 25px;
}

/* Header */
.product-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(180, 140, 80, 0.2);
}

.product-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.product-title {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    color: #d4a856;
    margin: 0;
    text-shadow: 0 0 20px rgba(255, 150, 50, 0.3);
    line-height: 1.2;
}

.product-level {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    color: #8a7a60;
    background: rgba(0, 0, 0, 0.4);
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #3d3428;
    white-space: nowrap;
}

.product-rarity {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 8px;
}

.product-rarity.rarity-common { color: #9d9d9d; }
.product-rarity.rarity-uncommon { color: #1eff00; }
.product-rarity.rarity-rare { color: #0070dd; }
.product-rarity.rarity-epic { color: #a335ee; }
.product-rarity.rarity-legendary {
    color: #ff8000;
    text-shadow: 0 0 10px rgba(255, 128, 0, 0.5);
    animation: legendary-glow 2s ease-in-out infinite;
}

@keyframes legendary-glow {
    0%, 100% { text-shadow: 0 0 10px rgba(255, 128, 0, 0.5); }
    50% { text-shadow: 0 0 20px rgba(255, 128, 0, 0.8), 0 0 30px rgba(255, 128, 0, 0.4); }
}

/* Rarity border glow */
.product-page-container.rarity-legendary .product-info {
    border-color: #ff8000;
    box-shadow: 0 0 20px rgba(255, 128, 0, 0.2);
}

.product-page-container.rarity-epic .product-info {
    border-color: #a335ee;
    box-shadow: 0 0 15px rgba(163, 53, 238, 0.2);
}

.product-page-container.rarity-rare .product-info {
    border-color: #0070dd;
    box-shadow: 0 0 15px rgba(0, 112, 221, 0.2);
}

/* Price Box */
.product-price-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #3d3428;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 20px;
}

.price-label {
    color: #8a7a60;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-value {
    font-size: 1.4rem;
    color: #ffd700;
    font-weight: 600;
}

.price-value .woocommerce-Price-amount {
    color: #ffd700;
}

/* Sections */
.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: #b8a070;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title svg {
    color: #d4a856;
}

/* Stats Section */
.product-stats-section {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid #3d3428;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-item {
    display: grid;
    grid-template-columns: 28px 90px 1fr 50px;
    align-items: center;
    gap: 10px;
}

.stat-item .stat-icon {
    font-size: 1.1rem;
    text-align: center;
}

.stat-item .stat-name {
    color: #8a7a60;
    font-size: 0.85rem;
}

.stat-bar-wrapper {
    height: 6px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 3px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #1eff00 0%, #00ff88 100%);
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(30, 255, 0, 0.4);
    transition: width 0.5s ease;
}

.stat-item .stat-value {
    color: #1eff00;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: right;
}

/* Bonuses Section */
.product-bonuses-section {
    background: rgba(163, 53, 238, 0.1);
    border: 1px solid rgba(163, 53, 238, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.bonuses-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bonus-item {
    color: #a335ee;
    font-size: 0.85rem;
    padding-left: 15px;
    position: relative;
}

.bonus-item::before {
    content: '★';
    position: absolute;
    left: 0;
    color: #a335ee;
    font-size: 0.7rem;
}

/* Description Section */
.product-description-section {
    margin-bottom: 20px;
}

.description-content {
    color: #c4b89a;
    font-size: 0.9rem;
    line-height: 1.7;
}

.description-content p {
    margin-bottom: 10px;
}

/* Actions */
.product-actions {
    margin-bottom: 20px;
}

.cart-form {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.quantity-wrapper {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #3d3428;
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn {
    width: 36px;
    background: linear-gradient(180deg, #252018 0%, #1a1612 100%);
    border: none;
    color: #d4a856;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: linear-gradient(180deg, #3d3428 0%, #2d251c 100%);
}

.qty-input {
    width: 50px;
    background: transparent;
    border: none;
    color: #c4b89a;
    text-align: center;
    font-size: 1rem;
    font-family: 'Rajdhani', sans-serif;
    -moz-appearance: textfield;
    appearance: textfield;
}

.qty-input:focus {
    outline: none;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.product-actions .add-to-cart-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(180deg, #d4a856 0%, #b8860b 100%);
    border: 2px solid #d4a856;
    border-radius: 6px;
    color: #1a1510;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 12px 20px;
}

.product-actions .add-to-cart-btn:hover {
    background: linear-gradient(180deg, #f0c060 0%, #d4a856 100%);
    box-shadow: 0 0 20px rgba(212, 168, 86, 0.4);
    transform: translateY(-2px);
}

.out-of-stock-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.3);
    border-radius: 6px;
    color: #e63946;
    padding: 15px;
    font-family: 'Cinzel', serif;
}

/* Meta */
.product-meta {
    border-top: 1px solid rgba(180, 140, 80, 0.2);
    padding-top: 15px;
}

.meta-item {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.8rem;
}

.meta-label {
    color: #5a4d3a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meta-value {
    color: #8a7a60;
}

.meta-value a {
    color: #b8a070;
}

.meta-value a:hover {
    color: #d4a856;
}

/* ========== RESPONSIVE ========== */

/* Tablet */
@media (max-width: 900px) {
    .product-page-container {
        padding: 20px;
        padding-top: 60px;
    }

    .product-page-inner {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
        width: 100%;
    }

    .product-gallery {
        position: static;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }

    .gallery-main,
    .product-carousel,
    .swiper-wrapper,
    .swiper-slide {
        max-width: 100%;
        width: 100%;
    }

    .slide-image-wrapper {
        aspect-ratio: 1;
        max-height: 300px;
        width: 100%;
    }

    .slide-image-wrapper img {
        max-width: 100%;
        max-height: 100%;
    }

    .product-info {
        max-width: 100%;
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .product-page-container {
        padding: 15px;
        padding-top: 55px;
    }

    .product-page-inner {
        gap: 20px;
        max-width: 100%;
    }

    .product-gallery {
        max-width: 100%;
        padding: 12px;
        border-radius: 8px;
    }

    .gallery-main {
        max-width: 100%;
    }

    .slide-image-wrapper {
        padding: 10px;
        max-height: 250px;
    }

    .back-to-inventory {
        top: 10px;
        left: 10px;
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .back-to-inventory svg {
        width: 14px;
        height: 14px;
    }

    .product-carousel .swiper-button-prev,
    .product-carousel .swiper-button-next {
        width: 32px;
        height: 32px;
    }

    .product-carousel .swiper-button-prev:after,
    .product-carousel .swiper-button-next:after {
        font-size: 12px;
    }

    .thumbs-carousel .swiper-slide {
        width: 55px;
        height: 55px;
    }

    .product-info {
        padding: 20px;
        border-radius: 10px;
    }

    .product-header {
        margin-bottom: 15px;
        padding-bottom: 15px;
    }

    .product-title-row {
        flex-direction: column;
        gap: 10px;
    }

    .product-title {
        font-size: 1.4rem;
    }

    .product-level {
        align-self: flex-start;
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .product-rarity {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .product-price-box {
        padding: 14px 16px;
        margin-bottom: 20px;
    }

    .price-label {
        font-size: 0.9rem;
    }

    .price-value {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    .product-stats-section,
    .product-bonuses-section {
        padding: 15px;
        margin-bottom: 15px;
    }

    .stat-item {
        grid-template-columns: 28px 1fr 45px;
        gap: 10px;
        padding: 5px 0;
    }

    .stat-item .stat-icon {
        font-size: 1.2rem;
    }

    .stat-item .stat-name {
        font-size: 1rem;
    }

    .stat-bar-wrapper {
        display: none;
    }

    .stat-item .stat-value {
        font-size: 1rem;
    }

    .bonus-item {
        font-size: 0.95rem;
        padding: 4px 0 4px 18px;
    }

    .product-description-section {
        margin-bottom: 20px;
    }

    .description-content {
        font-size: 1rem;
        line-height: 1.6;
    }

    .product-actions {
        margin-bottom: 20px;
    }

    .cart-form {
        flex-direction: column;
        gap: 12px;
    }

    .quantity-wrapper {
        justify-content: center;
    }

    .qty-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .qty-input {
        width: 70px;
        font-size: 1.2rem;
    }

    .product-actions .add-to-cart-btn {
        padding: 16px 20px;
        font-size: 1rem;
    }

    .product-meta {
        padding-top: 15px;
    }

    .meta-item {
        font-size: 0.9rem;
        flex-wrap: wrap;
        margin-bottom: 10px;
    }
}
