/**
 * Red Dot Nation - WooCommerce Extra Styles
 *
 * These supplement the main style.css WooCommerce section
 * and are enqueued only on WooCommerce pages.
 */

/* ============================================================
   SHOP TOOLBAR
============================================================ */
.rdn-shop-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    background: var(--rdn-black-soft);
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: 4px;
}

.woocommerce-result-count {
    color: var(--rdn-text-muted);
    font-family: var(--rdn-font-body);
    font-size: 0.9rem;
    margin: 0;
}

.woocommerce-ordering select {
    background: var(--rdn-black);
    color: var(--rdn-text-light);
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-family: var(--rdn-font-body);
    cursor: pointer;
}

/* ============================================================
   PRODUCT LOOP / GRID
============================================================ */
.products.columns-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.products.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.products.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
    .products.columns-3,
    .products.columns-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
    .products.columns-3,
    .products.columns-4,
    .products.columns-2 { grid-template-columns: 1fr; }
}

.rdn-product-card {
    position: relative;
    background: var(--rdn-black-soft);
    border: 1px solid rgba(201,168,76,0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.rdn-product-card:hover {
    border-color: rgba(201,168,76,0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.rdn-product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #111;
}

.rdn-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.rdn-product-card:hover .rdn-product-image img {
    transform: scale(1.06);
}

.rdn-product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(201,168,76,0.4);
    background: var(--rdn-black-soft);
}

.rdn-product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(139,26,26,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.rdn-product-card:hover .rdn-product-overlay {
    opacity: 1;
}

.overlay-text {
    color: #fff;
    font-family: var(--rdn-font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.5);
    padding: 0.5rem 1.2rem;
}

.rdn-sale-badge,
.rdn-out-of-stock-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--rdn-red-accent);
    color: #fff;
    font-family: var(--rdn-font-heading);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 2px;
    z-index: 2;
}

.rdn-out-of-stock-badge {
    background: #555;
}

.rdn-product-info {
    padding: 1.2rem;
}

.rdn-product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--rdn-gold);
    margin-bottom: 0.4rem;
    font-family: var(--rdn-font-heading);
}

.rdn-product-title {
    font-family: var(--rdn-font-heading);
    font-size: 1rem;
    color: #fff;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.rdn-product-price {
    font-family: var(--rdn-font-heading);
    font-size: 1.1rem;
    color: var(--rdn-gold);
    margin-bottom: 0.5rem;
}

.rdn-product-price del { color: var(--rdn-text-muted); font-size: 0.9rem; }
.rdn-product-price ins { color: var(--rdn-red-accent); text-decoration: none; }

.rdn-product-rating {
    margin-bottom: 0.75rem;
}

.rdn-product-rating .star-rating {
    color: var(--rdn-gold);
    font-size: 0.85rem;
}

.rdn-product-actions {
    padding: 0 1.2rem 1.2rem;
}

.rdn-product-actions .button,
.rdn-product-actions .add_to_cart_button {
    display: block;
    width: 100%;
    background: var(--rdn-red);
    color: #fff;
    border: 1px solid var(--rdn-red);
    font-family: var(--rdn-font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    padding: 0.7rem 1rem;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    text-decoration: none;
}

.rdn-product-actions .button:hover {
    background: var(--rdn-gold);
    border-color: var(--rdn-gold);
    color: var(--rdn-black);
}

.rdn-product-actions .added_to_cart {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: var(--rdn-gold);
    margin-top: 0.5rem;
    text-decoration: none;
}

/* ============================================================
   SINGLE PRODUCT
============================================================ */
.rdn-single-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.woocommerce-product-gallery {
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: 8px;
    overflow: hidden;
    background: #111;
}

.woocommerce-product-gallery .woocommerce-product-gallery__image img {
    width: 100%;
    display: block;
}

.woocommerce-product-gallery__wrapper {
    display: flex;
    flex-direction: column;
}

div.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 768px) {
    div.product { grid-template-columns: 1fr; }
}

.summary .product_title {
    font-family: var(--rdn-font-heading);
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.summary .price {
    font-family: var(--rdn-font-heading);
    font-size: 1.8rem;
    color: var(--rdn-gold);
    margin-bottom: 1.5rem;
}

.summary .price del { color: var(--rdn-text-muted); font-size: 1.2rem; }
.summary .price ins { color: var(--rdn-red-accent); text-decoration: none; }

.summary .woocommerce-product-details__short-description {
    color: var(--rdn-text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--rdn-gold);
    padding-left: 1rem;
}

/* Quantity + Add to Cart */
.quantity .rdn-qty-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: 4px;
    overflow: hidden;
    width: fit-content;
    background: var(--rdn-black-soft);
}

.rdn-qty-minus,
.rdn-qty-plus {
    width: 36px;
    height: 44px;
    background: none;
    border: none;
    color: var(--rdn-gold);
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rdn-qty-minus:hover,
.rdn-qty-plus:hover { background: rgba(201,168,76,0.1); }

.quantity .qty {
    width: 50px;
    text-align: center;
    background: none;
    border: none;
    color: #fff;
    font-family: var(--rdn-font-heading);
    font-size: 1rem;
    padding: 0.5rem;
    -moz-appearance: textfield;
}

.quantity .qty::-webkit-outer-spin-button,
.quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.single_add_to_cart_button,
.woocommerce button.button.alt {
    background: var(--rdn-red) !important;
    color: #fff !important;
    border: none !important;
    font-family: var(--rdn-font-heading) !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    padding: 1rem 2.5rem !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    transition: background 0.3s !important;
    margin-left: 1rem;
}

.single_add_to_cart_button:hover { background: var(--rdn-gold) !important; color: var(--rdn-black) !important; }

/* Tabs */
.woocommerce-tabs ul.tabs {
    list-style: none;
    padding: 0;
    margin: 0 0 -1px;
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(201,168,76,0.2);
}

.woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
}

.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 0.8rem 1.5rem;
    font-family: var(--rdn-font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rdn-text-muted);
    border: 1px solid transparent;
    border-bottom: none;
    text-decoration: none;
    transition: color 0.3s;
}

.woocommerce-tabs ul.tabs li.active a {
    color: var(--rdn-gold);
    border-color: rgba(201,168,76,0.2);
    background: var(--rdn-black-soft);
}

.woocommerce-tabs .panel {
    padding: 2rem;
    background: var(--rdn-black-soft);
    border: 1px solid rgba(201,168,76,0.2);
    border-top: none;
    color: var(--rdn-text-light);
    line-height: 1.8;
}

/* Reviews */
#reviews .comment_container {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.comment-text { color: var(--rdn-text-muted); }
.comment-text .star-rating { color: var(--rdn-gold); }

/* Related products */
.related.products > h2,
.upsells.products > h2,
.cross-sells > h2 {
    font-family: var(--rdn-font-heading);
    font-size: 1.5rem;
    color: var(--rdn-gold);
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(201,168,76,0.2);
}

/* ============================================================
   CART
============================================================ */
.woocommerce-cart-form table.shop_table {
    width: 100%;
    border-collapse: collapse;
    background: var(--rdn-black-soft);
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: 8px;
    overflow: hidden;
}

.woocommerce-cart-form table.shop_table th {
    font-family: var(--rdn-font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rdn-gold);
    background: rgba(201,168,76,0.05);
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(201,168,76,0.15);
}

.woocommerce-cart-form table.shop_table td {
    padding: 1.2rem 1.5rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--rdn-text-light);
}

.woocommerce-cart-form .product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(201,168,76,0.2);
}

.woocommerce-cart-form .product-name a {
    color: #fff;
    font-family: var(--rdn-font-heading);
    font-size: 0.95rem;
    text-decoration: none;
}
.woocommerce-cart-form .product-name a:hover { color: var(--rdn-gold); }

.woocommerce-cart-form .product-price,
.woocommerce-cart-form .product-subtotal { color: var(--rdn-gold); font-family: var(--rdn-font-heading); }

.cart_totals {
    background: var(--rdn-black-soft);
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: 8px;
    padding: 2rem;
}

.cart_totals h2 {
    font-family: var(--rdn-font-heading);
    font-size: 1.2rem;
    color: var(--rdn-gold);
    margin-bottom: 1.5rem;
}

.cart_totals table {
    width: 100%;
    border-collapse: collapse;
}

.cart_totals table th,
.cart_totals table td {
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--rdn-text-light);
}

.cart_totals table th { color: var(--rdn-text-muted); font-family: var(--rdn-font-body); font-weight: 400; }
.cart_totals table .order-total th,
.cart_totals table .order-total td { color: var(--rdn-gold); font-family: var(--rdn-font-heading); font-size: 1.1rem; }

.wc-proceed-to-checkout .checkout-button,
.wc-proceed-to-checkout a {
    display: block;
    background: var(--rdn-red);
    color: #fff;
    font-family: var(--rdn-font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    padding: 1rem 2rem;
    border-radius: 3px;
    text-decoration: none;
    transition: background 0.3s;
    margin-top: 1.5rem;
}
.wc-proceed-to-checkout .checkout-button:hover { background: var(--rdn-gold); color: var(--rdn-black); }

/* ============================================================
   CHECKOUT
============================================================ */
.woocommerce-checkout #customer_details h3,
.woocommerce-checkout #order_review_heading {
    font-family: var(--rdn-font-heading);
    font-size: 1.2rem;
    color: var(--rdn-gold);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(201,168,76,0.2);
}

.woocommerce-checkout .woocommerce-input-wrapper input,
.woocommerce-checkout .woocommerce-input-wrapper select,
.woocommerce-checkout .woocommerce-input-wrapper textarea,
.woocommerce form .input-text {
    background: var(--rdn-black-soft) !important;
    border: 1px solid rgba(201,168,76,0.2) !important;
    color: #fff !important;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    width: 100%;
    font-family: var(--rdn-font-body);
    transition: border-color 0.3s;
}

.woocommerce form .input-text:focus {
    border-color: var(--rdn-gold) !important;
    outline: none;
}

.woocommerce form label {
    color: var(--rdn-text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    display: block;
}

.woocommerce-checkout #payment {
    background: var(--rdn-black-soft);
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: 8px;
    padding: 1.5rem;
}

.woocommerce-checkout #payment ul.payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.woocommerce-checkout #payment ul.payment_methods li {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--rdn-text-light);
}

#place_order,
.woocommerce #payment #place_order {
    background: var(--rdn-red) !important;
    color: #fff !important;
    border: none !important;
    font-family: var(--rdn-font-heading) !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    padding: 1rem 3rem !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    width: 100%;
    transition: background 0.3s !important;
}

#place_order:hover { background: var(--rdn-gold) !important; color: var(--rdn-black) !important; }

/* ============================================================
   MY ACCOUNT
============================================================ */
.woocommerce-account .woocommerce-MyAccount-navigation {
    background: var(--rdn-black-soft);
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: 8px;
    overflow: hidden;
}

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

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 0.9rem 1.5rem;
    color: var(--rdn-text-light);
    font-family: var(--rdn-font-body);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: color 0.3s, background 0.3s;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    color: var(--rdn-gold);
    background: rgba(201,168,76,0.05);
}

.woocommerce-account .woocommerce-MyAccount-content {
    background: var(--rdn-black-soft);
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: 8px;
    padding: 2rem;
}

/* ============================================================
   NOTICES
============================================================ */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    font-family: var(--rdn-font-body);
    list-style: none;
}

.woocommerce-message { background: rgba(201,168,76,0.1); border-left: 4px solid var(--rdn-gold); color: #fff; }
.woocommerce-info { background: rgba(30,144,255,0.1); border-left: 4px solid dodgerblue; color: #fff; }
.woocommerce-error { background: rgba(231,76,60,0.1); border-left: 4px solid var(--rdn-red-accent); color: #fff; }

.woocommerce-message a.button,
.woocommerce-info a.button {
    background: var(--rdn-red);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 3px;
    font-family: var(--rdn-font-heading);
    font-size: 0.8rem;
    text-decoration: none;
    float: right;
}

/* ============================================================
   THANK YOU PAGE
============================================================ */
.woocommerce-order-received .woocommerce-thankyou-order-received {
    font-family: var(--rdn-font-heading);
    font-size: 1.8rem;
    color: var(--rdn-gold);
    margin-bottom: 1rem;
}

.woocommerce-order-overview {
    background: var(--rdn-black-soft);
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: 8px;
    padding: 1.5rem;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.woocommerce-order-overview li {
    font-family: var(--rdn-font-body);
    color: var(--rdn-text-muted);
}

.woocommerce-order-overview li strong {
    display: block;
    font-family: var(--rdn-font-heading);
    color: var(--rdn-gold);
    font-size: 1rem;
}
