/**
 * ESR Hub Public/Frontend Styles
 *
 * Gaya untuk paparan awam.
 *
 * @package ESR_Hub
 * @since   1.0.0
 */

/* Variables — Pink Theme */
:root {
    --wna-primary: #e8629a;
    --wna-primary-dark: #d44a78;
    --wna-success: #e8629a;
    --wna-warning: #d44a78;
    --wna-danger: #c44a6e;
    --wna-text: #3a3a3a;
    --wna-text-light: #888888;
    --wna-border: #f0e4e9;
    --wna-bg: #fdf8fa;
    --wna-radius: 8px;
    --wna-shadow: 0 1px 3px rgba(232, 98, 154, 0.08);
}

/* Container */
.wna-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Grid */
.wna-grid {
    display: grid;
    gap: 20px;
}

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

@media (max-width: 992px) {
    .wna-grid-4 { grid-template-columns: repeat(3, 1fr); }
}

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

@media (max-width: 480px) {
    .wna-grid-2,
    .wna-grid-3,
    .wna-grid-4 { grid-template-columns: 1fr; }
}

/* Buttons */
.wna-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--wna-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.wna-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(232, 98, 154, 0.2);
}

.wna-btn-primary {
    background: var(--wna-primary);
    color: #fff;
}

.wna-btn-primary:hover {
    background: var(--wna-primary-dark);
    color: #fff;
}

.wna-btn-secondary {
    background: #fff;
    color: var(--wna-text);
    border: 1px solid var(--wna-border);
}

.wna-btn-secondary:hover {
    background: var(--wna-bg);
    color: var(--wna-text);
}

.wna-btn-success {
    background: var(--wna-success);
    color: #fff;
}

.wna-btn-block {
    width: 100%;
}

.wna-btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.wna-btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.wna-btn:disabled,
.wna-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Product Card */
.wna-product-card {
    background: #fff;
    border: 1px solid var(--wna-border);
    border-radius: var(--wna-radius);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.wna-product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wna-product-card a {
    text-decoration: none;
    color: inherit;
}

.wna-product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--wna-bg);
}

.wna-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.wna-product-card:hover .wna-product-image img {
    transform: scale(1.05);
}

.wna-product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    background: var(--wna-danger);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
}

.wna-product-badge.out-of-stock {
    background: var(--wna-text-light);
}

.wna-product-info {
    padding: 15px;
}

.wna-product-category {
    font-size: 12px;
    color: var(--wna-text-light);
    margin-bottom: 5px;
}

.wna-product-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--wna-text);
    margin: 0 0 10px;
    line-height: 1.4;
}

.wna-product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--wna-primary);
}

.wna-product-price del {
    font-size: 14px;
    font-weight: 400;
    color: var(--wna-text-light);
    margin-right: 8px;
}

.wna-product-price .sale {
    color: var(--wna-danger);
}

/* Single Product */
.wna-single-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

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

.wna-product-gallery {
    position: relative;
}

.wna-product-main-image {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--wna-radius);
    overflow: hidden;
    background: var(--wna-bg);
}

.wna-product-main-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.wna-product-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.wna-product-thumbnails img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    background: var(--wna-bg, #18181b);
    flex-shrink: 0;
}

.wna-product-thumbnails img:hover,
.wna-product-thumbnails img.active {
    border-color: var(--wna-primary);
}

.wna-product-details h1 {
    font-size: 28px;
    margin: 0 0 10px;
}

.wna-product-sku {
    font-size: 14px;
    color: var(--wna-text-light);
    margin-bottom: 15px;
}

.wna-product-details .wna-product-price {
    font-size: 28px;
    margin-bottom: 20px;
}

.wna-product-stock {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.wna-product-stock.in-stock {
    color: var(--wna-success);
}

.wna-product-stock.low-stock {
    color: var(--wna-warning);
}

.wna-product-stock.out-of-stock {
    color: var(--wna-danger);
}

.wna-quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.wna-quantity-selector label {
    font-weight: 600;
}

.wna-quantity-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--wna-border);
    border-radius: 6px;
}

.wna-quantity-input button {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--wna-text);
}

.wna-quantity-input button:hover {
    background: var(--wna-bg);
}

.wna-quantity-input input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.wna-quantity-input input:focus {
    outline: none;
}

.wna-add-to-cart-form {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.wna-product-description {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--wna-border);
}

.wna-product-description h3 {
    font-size: 18px;
    margin: 0 0 15px;
}

/* Cart */
.wna-cart-page {
    padding: 40px 0;
}

.wna-cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.wna-cart-table th,
.wna-cart-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--wna-border);
}

.wna-cart-table th {
    font-weight: 600;
    color: var(--wna-text-light);
    text-transform: uppercase;
    font-size: 12px;
}

.wna-cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
}

.wna-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wna-cart-item-name {
    font-weight: 600;
}

.wna-cart-item-remove {
    color: var(--wna-danger);
    cursor: pointer;
    font-size: 12px;
}

.wna-cart-item-remove:hover {
    text-decoration: underline;
}

.wna-cart-totals {
    background: var(--wna-bg);
    padding: 30px;
    border-radius: var(--wna-radius);
    max-width: 400px;
    margin-left: auto;
}

.wna-cart-totals h3 {
    margin: 0 0 20px;
    font-size: 18px;
}

.wna-cart-totals-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--wna-border);
}

.wna-cart-totals-row.total {
    font-size: 20px;
    font-weight: 700;
    border-bottom: none;
    padding-top: 15px;
}

.wna-cart-actions {
    margin-top: 20px;
}

/* Checkout */
.wna-checkout-page {
    padding: 40px 0;
}

.wna-checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

@media (max-width: 992px) {
    .wna-checkout-grid {
        grid-template-columns: 1fr;
    }
}

.wna-checkout-section {
    background: #fff;
    border: 1px solid var(--wna-border);
    border-radius: var(--wna-radius);
    padding: 25px;
    margin-bottom: 20px;
}

.wna-checkout-section h2 {
    font-size: 18px;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--wna-border);
}

.wna-address-card {
    padding: 15px;
    border: 2px solid var(--wna-border);
    border-radius: var(--wna-radius);
    cursor: pointer;
    margin-bottom: 10px;
    transition: border-color 0.2s;
}

.wna-address-card:hover,
.wna-address-card.selected {
    border-color: var(--wna-primary);
}

.wna-address-card.selected {
    background: #f0f9ff;
}

.wna-address-card h4 {
    margin: 0 0 5px;
    font-size: 15px;
}

.wna-address-card p {
    margin: 0;
    font-size: 14px;
    color: var(--wna-text-light);
}

.wna-payment-method {
    padding: 15px;
    border: 2px solid var(--wna-border);
    border-radius: var(--wna-radius);
    cursor: pointer;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: border-color 0.2s;
}

.wna-payment-method:hover,
.wna-payment-method.selected {
    border-color: var(--wna-primary);
}

.wna-payment-method.selected {
    background: #f0f9ff;
}

.wna-payment-method input[type="radio"] {
    width: 20px;
    height: 20px;
}

.wna-payment-method-info h4 {
    margin: 0 0 3px;
    font-size: 15px;
}

.wna-payment-method-info p {
    margin: 0;
    font-size: 13px;
    color: var(--wna-text-light);
}

.wna-order-summary {
    background: var(--wna-bg);
    border-radius: var(--wna-radius);
    padding: 25px;
    position: sticky;
    top: 20px;
}

.wna-order-summary h2 {
    font-size: 18px;
    margin: 0 0 20px;
}

.wna-order-item {
    display: flex;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid var(--wna-border);
}

.wna-order-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.wna-order-item-info {
    flex: 1;
}

.wna-order-item-name {
    font-weight: 600;
    font-size: 14px;
}

.wna-order-item-qty {
    font-size: 13px;
    color: var(--wna-text-light);
}

.wna-order-item-price {
    font-weight: 600;
}

/* Account */
.wna-account-page {
    padding: 40px 0;
}

.wna-account-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

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

.wna-account-nav {
    background: #fff;
    border: 1px solid var(--wna-border);
    border-radius: var(--wna-radius);
    padding: 15px;
}

.wna-account-nav a {
    display: block;
    padding: 12px 15px;
    color: var(--wna-text);
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 5px;
    transition: background 0.2s;
}

.wna-account-nav a:hover {
    background: var(--wna-bg);
}

.wna-account-nav a.active {
    background: var(--wna-primary);
    color: #fff;
}

.wna-account-content {
    background: #fff;
    border: 1px solid var(--wna-border);
    border-radius: var(--wna-radius);
    padding: 30px;
}

.wna-account-content h2 {
    margin: 0 0 25px;
    font-size: 22px;
}

/* Forms */
.wna-form-group {
    margin-bottom: 20px;
}

.wna-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--wna-text);
}

.wna-form-group label .required {
    color: var(--wna-danger);
}

.wna-input,
.wna-select,
.wna-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--wna-border);
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.wna-input:focus,
.wna-select:focus,
.wna-textarea:focus {
    outline: none;
    border-color: var(--wna-primary);
    box-shadow: 0 0 0 3px rgba(232, 98, 154, 0.1);
}

.wna-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 480px) {
    .wna-form-row {
        grid-template-columns: 1fr;
    }
}

/* Alerts */
.wna-alert {
    padding: 15px 20px;
    border-radius: var(--wna-radius);
    margin-bottom: 20px;
}

.wna-alert-success { background: rgba(232, 98, 154, 0.1); color: #d44a78; }
.wna-alert-warning { background: rgba(212, 74, 120, 0.1); color: #c44a6e; }
.wna-alert-danger { background: rgba(196, 74, 110, 0.1); color: #c44a6e; }
.wna-alert-info { background: rgba(232, 98, 154, 0.08); color: #e8629a; }

/* Badge */
.wna-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.wna-badge-success { background: rgba(232, 98, 154, 0.1); color: #d44a78; }
.wna-badge-warning { background: rgba(212, 74, 120, 0.1); color: #c44a6e; }
.wna-badge-danger { background: rgba(196, 74, 110, 0.1); color: #c44a6e; }

/* Loading */
.wna-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--wna-border);
    border-top-color: var(--wna-primary);
    border-radius: 50%;
    animation: wna-spin 0.8s linear infinite;
}

@keyframes wna-spin {
    to { transform: rotate(360deg); }
}

/* Empty */
.wna-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--wna-text-light);
}

.wna-empty h3 {
    color: var(--wna-text);
    margin-bottom: 10px;
}

/* Auth Forms */
.wna-auth-container {
    max-width: 520px;
    margin: 60px auto;
    padding: 48px;
    background: var(--wna-zinc-900, #18181b);
    border: 1px solid var(--wna-zinc-800, #27272a);
    border-radius: 12px;
}

.wna-auth-container h1 {
    text-align: center;
    margin: 0 0 30px;
    font-size: 24px;
    color: var(--wna-white, #fff);
}

.wna-auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--wna-border);
    font-size: 14px;
}

/* Pagination */
.wna-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 30px 0;
}

.wna-pagination a,
.wna-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--wna-border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--wna-text);
    font-weight: 500;
}

.wna-pagination a:hover {
    background: var(--wna-bg);
}

.wna-pagination .current {
    background: var(--wna-primary);
    color: #fff;
    border-color: var(--wna-primary);
}

/* Toast Notification */
.wna-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    background: var(--wna-text);
    color: #fff;
    border-radius: var(--wna-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: none;
    animation: wna-slideIn 0.3s ease;
}

.wna-toast.success { background: var(--wna-success); }
.wna-toast.error { background: var(--wna-danger); }
.wna-toast.show { display: block; }
@media (max-width: 768px) { .wna-toast { display: none !important; } }

@keyframes wna-slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================================
   HOMEPAGE STYLES
   ============================================================ */

.wna-homepage {
    overflow-x: hidden;
}

/* Hero Section */
.wna-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #0d1b2a 100%);
    color: #fff;
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

.wna-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="8"/></svg>') center/cover no-repeat;
    opacity: 0.5;
}

.wna-hero-slider {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.wna-hero-slide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.wna-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.wna-hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 20px;
}

.wna-hero-subtitle {
    font-size: 18px;
    opacity: 0.8;
    margin: 0 0 30px;
    line-height: 1.6;
}

.wna-hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.wna-btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.wna-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.wna-hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wna-hero-image-placeholder {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.wna-hero-image-placeholder svg {
    stroke: rgba(255, 255, 255, 0.3);
}

.wna-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 40px 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wna-stat {
    text-align: center;
}

.wna-stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: #fff;
}

.wna-stat-label {
    display: block;
    font-size: 14px;
    opacity: 0.6;
    margin-top: 5px;
}

/* Features Bar */
.wna-features-bar {
    background: #fff;
    padding: 30px 0;
    border-bottom: 1px solid var(--wna-border);
}

.wna-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.wna-feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wna-feature-icon {
    width: 50px;
    height: 50px;
    background: var(--wna-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wna-feature-icon svg {
    stroke: var(--wna-primary);
}

.wna-feature-text strong {
    display: block;
    font-size: 14px;
    color: var(--wna-text);
}

.wna-feature-text span {
    font-size: 13px;
    color: var(--wna-text-light);
}

/* Section Styles */
.wna-section {
    padding: 80px 0;
}

.wna-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.wna-section-header-center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.wna-section-subtitle {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--wna-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.wna-section-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0;
    color: var(--wna-text);
}

.wna-section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--wna-primary);
    text-decoration: none;
    transition: gap 0.2s;
}

.wna-section-link:hover {
    gap: 12px;
}

/* Categories Grid */
.wna-categories-section {
    background: var(--wna-bg);
}

.wna-categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.wna-category-card {
    background: transparent;
    border-radius: 0;
    padding: 0;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s;
    border: none;
}

.wna-category-card:hover {
    transform: translateY(-4px);
    box-shadow: none;
}

.wna-category-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--wna-primary), #d44a78);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wna-category-icon svg {
    width: 32px;
    height: 32px;
    stroke: #fff;
}

.wna-category-name {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 5px;
    color: var(--wna-text);
}

.wna-category-count {
    font-size: 13px;
    color: var(--wna-text-light);
}

/* Products Grid */
.wna-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.wna-no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--wna-bg);
    border-radius: var(--wna-radius);
    color: var(--wna-text-light);
}

/* Promo Banner */
.wna-promo-banner {
    background: linear-gradient(135deg, #e8629a 0%, #d44a78 100%);
    padding: 60px 0;
    color: #fff;
}

.wna-promo-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    align-items: center;
}

.wna-promo-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.wna-promo-title {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 15px;
}

.wna-promo-desc {
    font-size: 16px;
    opacity: 0.9;
    margin: 0 0 25px;
    line-height: 1.6;
}

.wna-promo-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.wna-promo-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 15px;
}

.wna-promo-features svg {
    flex-shrink: 0;
}

.wna-btn-light {
    background: #fff;
    color: #e8629a;
}

.wna-btn-light:hover {
    background: #f9fafb;
    color: #d44a78;
}

.wna-promo-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wna-promo-badge-float {
    width: 150px;
    height: 150px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

.wna-badge-discount {
    font-size: 42px;
    font-weight: 800;
    color: #e8629a;
    line-height: 1;
}

.wna-badge-text {
    font-size: 18px;
    font-weight: 700;
    color: #e8629a;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Brands Section */
.wna-brands-section {
    background: var(--wna-bg);
    padding: 60px 0;
}

.wna-brands-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.wna-brand-item {
    background: #fff;
    padding: 20px 40px;
    border-radius: var(--wna-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: box-shadow 0.2s;
    border: 1px solid var(--wna-border);
}

.wna-brand-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wna-brand-item img {
    max-width: 100px;
    max-height: 40px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.2s;
}

.wna-brand-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

.wna-brand-name {
    font-weight: 700;
    color: var(--wna-text);
    font-size: 14px;
}

/* Newsletter Section */
.wna-newsletter-section {
    background: linear-gradient(135deg, #1e3a5f 0%, #0d1b2a 100%);
    padding: 80px 0;
    color: #fff;
}

.wna-newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.wna-newsletter-text h2 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 10px;
}

.wna-newsletter-text p {
    margin: 0;
    opacity: 0.8;
    font-size: 16px;
}

.wna-newsletter-input-wrap {
    display: flex;
    gap: 10px;
}

.wna-newsletter-input-wrap input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: var(--wna-radius);
    font-size: 15px;
}

.wna-newsletter-input-wrap input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(232, 98, 154, 0.3);
}

/* Responsive - Homepage */
@media (max-width: 1200px) {
    .wna-categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .wna-hero-slide {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .wna-hero-title {
        font-size: 36px;
    }

    .wna-hero-buttons {
        justify-content: center;
    }

    .wna-hero-image {
        display: none;
    }

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

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

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

    .wna-promo-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .wna-promo-features {
        display: inline-block;
        text-align: left;
    }

    .wna-promo-image {
        order: -1;
    }

    .wna-newsletter-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .wna-newsletter-input-wrap {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .wna-section {
        padding: 60px 0;
    }

    .wna-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .wna-section-title {
        font-size: 26px;
    }

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

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

    .wna-promo-title {
        font-size: 28px;
    }

    .wna-newsletter-input-wrap {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .wna-hero {
        padding: 50px 0 30px;
    }

    .wna-hero-title {
        font-size: 28px;
    }

    .wna-hero-buttons {
        flex-direction: column;
    }

    .wna-hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .wna-stat-number {
        font-size: 28px;
    }

    .wna-features-grid {
        grid-template-columns: 1fr;
    }

    .wna-categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .wna-category-card {
        padding: 20px 15px;
    }

    .wna-category-icon {
        width: 50px;
        height: 50px;
    }

    .wna-promo-badge-float {
        width: 120px;
        height: 120px;
    }

    .wna-badge-discount {
        font-size: 32px;
    }
}

/* ========================================
   Staff Dashboard Mobile Responsive
   ======================================== */

/* Filter row for staff pages */
.wna-filter-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.wna-filter-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    flex: 1;
}

.wna-filter-select {
    min-width: 150px;
}

/* Staff table responsive wrapper */
.wna-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -15px;
    padding: 0 15px;
}

@media (max-width: 768px) {
    /* Staff filter form stack */
    .wna-filter-row,
    .wna-filter-form {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .wna-filter-select,
    .wna-filter-form .wna-search-input,
    .wna-filter-form .btn-staff {
        width: 100%;
        min-width: unset;
    }

    .wna-filter-form .wna-search-input-wrap {
        width: 100%;
    }

    /* Staff stats grid */
    .staff-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    /* Staff action cards */
    .staff-actions-grid {
        grid-template-columns: 1fr !important;
    }

    /* Staff page header */
    .staff-page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .staff-page-header .btn-staff {
        width: 100%;
        justify-content: center;
    }

    /* Table scroll hint */
    .wna-table-wrap::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 30px;
        background: linear-gradient(to left, rgba(255,255,255,0.9), transparent);
        pointer-events: none;
    }

    /* Hide less important columns */
    .wna-orders-table th:nth-child(n+5),
    .wna-orders-table td:nth-child(n+5) {
        display: none;
    }

    .wna-products-table th:nth-child(n+5),
    .wna-products-table td:nth-child(n+5) {
        display: none;
    }

    .wna-customers-table th:nth-child(n+4),
    .wna-customers-table td:nth-child(n+4) {
        display: none;
    }
}

@media (max-width: 480px) {
    /* Staff stats single column */
    .staff-stats-grid {
        grid-template-columns: 1fr !important;
    }

    /* Bulk actions stack */
    .bulk-actions-form {
        flex-direction: column;
        align-items: stretch;
    }

    .bulk-actions-form select,
    .bulk-actions-form button {
        width: 100%;
    }

    /* More aggressive column hiding */
    .wna-orders-table th:nth-child(n+4),
    .wna-orders-table td:nth-child(n+4) {
        display: none;
    }

    /* Order row compact */
    .wna-orders-table td {
        padding: 8px 6px;
        font-size: 13px;
    }

    /* Staff card compact */
    .staff-stat-card {
        padding: 12px;
    }

    .staff-stat-value {
        font-size: 24px;
    }

    .staff-stat-label {
        font-size: 12px;
    }

    /* Modal full screen */
    .staff-modal-content {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        border-radius: 0;
        margin: 0;
    }

    /* Order item cards responsive */
    [style*="display: flex"][style*="gap: 16px"][style*="padding: 16px"] {
        flex-direction: column !important;
        gap: 12px !important;
        padding: 12px !important;
    }

    /* Right aligned text on mobile */
    [style*="text-align: right"] {
        text-align: left !important;
    }

    /* Flex-1 items */
    [style*="flex: 1"] {
        flex: none !important;
        width: 100% !important;
    }

    /* Alert cards stack */
    [style*="display: flex"][style*="align-items: center"][style*="gap: 16px"] {
        flex-direction: column !important;
        text-align: center !important;
    }

    /* Product thumbnails in tables */
    [style*="width: 60px"][style*="height: 60px"],
    [style*="width: 50px"][style*="height: 50px"] {
        width: 48px !important;
        height: 48px !important;
    }
}

/* ========================================
   Order Item Card Component (Mobile-friendly)
   ======================================== */
.wna-order-item-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--wna-bg, #f9fafb);
    border-radius: 8px;
}

.wna-order-item-image {
    width: 60px;
    height: 60px;
    background: var(--wna-border, #e5e7eb);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.wna-order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wna-order-item-details {
    flex: 1;
    min-width: 0;
}

.wna-order-item-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.wna-order-item-meta {
    font-size: 12px;
    color: var(--wna-text-muted, #6b7280);
}

.wna-order-item-price {
    text-align: right;
    flex-shrink: 0;
}

.wna-order-item-unit {
    font-size: 13px;
    color: var(--wna-text-muted, #6b7280);
}

.wna-order-item-total {
    font-weight: 600;
    font-size: 16px;
    margin-top: 4px;
}

@media (max-width: 480px) {
    .wna-order-item-card {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }

    .wna-order-item-image {
        width: 48px;
        height: 48px;
    }

    .wna-order-item-price {
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}
