/* AliExpress Shopping Agent - Frontend Styles */
/* Modern ChatGPT-Style Interface */

:root {
    --asa-primary: #ff6b35;
    --asa-primary-light: #ff8f66;
    --asa-primary-dark: #e55a2b;
    --asa-secondary: #1a1a2e;
    --asa-accent: #16213e;
    --asa-success: #10b981;
    --asa-warning: #f59e0b;
    --asa-bg-dark: #0f0f1a;
    --asa-bg-sidebar: #1a1a2e;
    --asa-bg-main: #16161e;
    --asa-bg-message: #1e1e2e;
    --asa-bg-user: #2d2d44;
    --asa-text-primary: #ffffff;
    --asa-text-secondary: #a0a0b0;
    --asa-text-muted: #6b6b7b;
    --asa-border: #2a2a3e;
    --asa-radius: 16px;
    --asa-radius-sm: 8px;
    --asa-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --asa-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   FULL SCREEN CHAT INTERFACE - APP STYLE
   ============================================ */

/* Hide WordPress header/footer when chat is active */
body.asa-fullscreen-active,
html.asa-fullscreen-active {
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.asa-fullscreen-active #wpadminbar,
body.asa-fullscreen-active header,
body.asa-fullscreen-active .site-header,
body.asa-fullscreen-active .header,
body.asa-fullscreen-active #header,
body.asa-fullscreen-active .main-header,
body.asa-fullscreen-active nav.main-navigation,
body.asa-fullscreen-active .navigation,
body.asa-fullscreen-active footer,
body.asa-fullscreen-active .site-footer,
body.asa-fullscreen-active .footer,
body.asa-fullscreen-active #footer,
body.asa-fullscreen-active .main-footer,
body.asa-fullscreen-active .ast-header-break-point,
body.asa-fullscreen-active #masthead,
body.asa-fullscreen-active .elementor-location-header,
body.asa-fullscreen-active .elementor-location-footer,
body.asa-fullscreen-active #ast-mobile-header,
body.asa-fullscreen-active .ast-mobile-header-wrap,
body.asa-fullscreen-active .site-branding,
body.asa-fullscreen-active #colophon,
body.asa-fullscreen-active .wp-block-template-part,
body.asa-fullscreen-active aside,
body.asa-fullscreen-active .sidebar,
body.asa-fullscreen-active #secondary {
    display: none !important;
}

body.asa-fullscreen-active .site-content,
body.asa-fullscreen-active .content-area,
body.asa-fullscreen-active #content,
body.asa-fullscreen-active #main,
body.asa-fullscreen-active .main-content,
body.asa-fullscreen-active main,
body.asa-fullscreen-active article,
body.asa-fullscreen-active .entry-content,
body.asa-fullscreen-active .page-content,
body.asa-fullscreen-active .ast-container,
body.asa-fullscreen-active .site-main {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.asa-chat-fullscreen {
    direction: rtl;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    height: calc(var(--vh, 1vh) * 100) !important;
    min-height: 100vh !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: var(--asa-bg-dark) !important;
    color: var(--asa-text-primary);
    z-index: 999999 !important;
    overflow: hidden !important;
    overscroll-behavior: none;
    touch-action: manipulation;
    box-sizing: border-box !important;
}

/* Force hide all WordPress elements when chat exists */
body:has(.asa-chat-fullscreen),
html:has(.asa-chat-fullscreen) {
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

body:has(.asa-chat-fullscreen) > *:not(.asa-chat-fullscreen):not(script):not(style):not(link) {
    display: none !important;
}

/* Sidebar */
.asa-chat-sidebar {
    width: 280px;
    background: var(--asa-bg-sidebar);
    border-left: 1px solid var(--asa-border);
    display: flex;
    flex-direction: column;
    transition: var(--asa-transition);
    z-index: 100;
}

.asa-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--asa-border);
}

.asa-new-chat-btn {
    width: 100%;
    padding: 14px 20px;
    background: var(--asa-primary);
    color: white;
    border: none;
    border-radius: var(--asa-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--asa-transition);
}

.asa-new-chat-btn:hover {
    background: var(--asa-primary-dark);
    transform: translateY(-2px);
}

.asa-conversations-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.asa-conversation-item {
    padding: 14px 16px;
    border-radius: var(--asa-radius-sm);
    cursor: pointer;
    transition: var(--asa-transition);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.asa-conversation-item:hover {
    background: var(--asa-bg-message);
}

.asa-conversation-item.active {
    background: var(--asa-primary);
    background: linear-gradient(135deg, var(--asa-primary) 0%, var(--asa-primary-dark) 100%);
}

.asa-conversation-item .icon {
    font-size: 18px;
    opacity: 0.8;
}

.asa-conversation-item .title {
    flex: 1;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.asa-conversation-item .delete-btn {
    opacity: 0;
    background: none;
    border: none;
    color: var(--asa-text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    transition: var(--asa-transition);
}

.asa-conversation-item:hover .delete-btn {
    opacity: 1;
}

.asa-conversation-item .delete-btn:hover {
    color: #ef4444;
}

.asa-sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--asa-border);
    font-size: 12px;
    color: var(--asa-text-muted);
    text-align: center;
}

/* Main Chat Area */
.asa-chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--asa-bg-main);
    min-width: 0;
}

/* Chat Header */
.asa-chat-topbar {
    padding: 16px 24px;
    background: var(--asa-bg-sidebar);
    border-bottom: 1px solid var(--asa-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.asa-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--asa-text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

.asa-chat-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.asa-chat-title .logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--asa-primary) 0%, var(--asa-primary-dark) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.asa-chat-title h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.asa-chat-title span {
    font-size: 12px;
    color: var(--asa-text-muted);
}

.asa-model-selector {
    background: var(--asa-bg-message);
    border: 1px solid var(--asa-border);
    border-radius: var(--asa-radius-sm);
    padding: 8px 16px;
    color: var(--asa-text-primary);
    font-size: 13px;
    cursor: pointer;
}

/* Messages Area */
.asa-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.asa-message {
    display: flex;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    animation: messageSlideIn 0.3s ease;
}

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

.asa-message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.asa-message-assistant .asa-message-avatar {
    background: linear-gradient(135deg, var(--asa-primary) 0%, var(--asa-primary-dark) 100%);
}

.asa-message-user .asa-message-avatar {
    background: var(--asa-bg-user);
}

.asa-message-content {
    flex: 1;
    min-width: 0;
}

.asa-message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.asa-message-name {
    font-weight: 600;
    font-size: 14px;
}

.asa-message-time {
    font-size: 11px;
    color: var(--asa-text-muted);
}

.asa-message-text {
    background: var(--asa-bg-message);
    padding: 16px 20px;
    border-radius: var(--asa-radius);
    line-height: 1.7;
    font-size: 15px;
}

.asa-message-user .asa-message-text {
    background: var(--asa-bg-user);
}

.asa-message-text p {
    margin: 0 0 12px 0;
}

.asa-message-text p:last-child {
    margin-bottom: 0;
}

.asa-message-text a {
    color: var(--asa-primary);
    text-decoration: none;
}

.asa-message-text a:hover {
    text-decoration: underline;
}

/* Clickable Options in Bot Messages */
.asa-option-btn {
    display: inline-block;
    background: var(--asa-primary);
    border: none;
    color: #fff;
    padding: 10px 18px;
    border-radius: 25px;
    margin: 5px 5px 5px 0;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    text-decoration: none;
}

.asa-option-btn:hover {
    background: var(--asa-primary-light);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.asa-option-btn:active {
    transform: scale(0.98);
}

/* Typing Indicator */
.asa-typing-indicator {
    display: flex;
    gap: 6px;
    padding: 12px 0;
}

.asa-typing-indicator span {
    width: 10px;
    height: 10px;
    background: var(--asa-primary);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.asa-typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.asa-typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-10px); opacity: 1; }
}

/* Products Grid in Chat */
.asa-chat-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.asa-chat-product-card {
    background: var(--asa-bg-sidebar);
    border-radius: var(--asa-radius);
    overflow: hidden;
    transition: var(--asa-transition);
    text-decoration: none;
    color: var(--asa-text-primary);
    border: 1px solid var(--asa-border);
    position: relative;
}

.asa-chat-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--asa-shadow);
    border-color: var(--asa-primary);
}

.asa-chat-product-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.asa-chat-product-card .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--asa-primary);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.asa-chat-product-card .info {
    padding: 14px;
}

.asa-chat-product-card .title {
    font-size: 13px;
    line-height: 1.4;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 10px;
}

.asa-chat-product-card .price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

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

.asa-chat-product-card .original-price {
    font-size: 12px;
    color: var(--asa-text-muted);
    text-decoration: line-through;
}

.asa-chat-product-card .find-similar {
    display: block;
    text-align: center;
    padding: 10px;
    background: var(--asa-bg-message);
    color: var(--asa-primary);
    font-size: 12px;
    font-weight: 600;
    border-top: 1px solid var(--asa-border);
    cursor: pointer;
    transition: var(--asa-transition);
}

.asa-chat-product-card .find-similar:hover {
    background: var(--asa-primary);
    color: white;
}

/* Quick Actions / Hot Buttons */
.asa-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 24px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.asa-quick-btn {
    background: var(--asa-bg-message);
    border: 1px solid var(--asa-border);
    border-radius: 20px;
    padding: 10px 18px;
    color: var(--asa-text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: var(--asa-transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.asa-quick-btn:hover {
    background: var(--asa-primary);
    border-color: var(--asa-primary);
    transform: translateY(-2px);
}

.asa-quick-btn .icon {
    font-size: 16px;
}

/* Welcome Screen */
.asa-welcome-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.asa-welcome-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--asa-primary) 0%, var(--asa-primary-dark) 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 24px;
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.3);
}

.asa-welcome-screen h2 {
    font-size: 28px;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.asa-welcome-screen p {
    color: var(--asa-text-secondary);
    font-size: 16px;
    max-width: 500px;
    margin: 0 0 32px 0;
    line-height: 1.6;
}

.asa-feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    max-width: 700px;
    width: 100%;
}

.asa-feature-card {
    background: var(--asa-bg-message);
    border: 1px solid var(--asa-border);
    border-radius: var(--asa-radius);
    padding: 20px;
    text-align: right;
    cursor: pointer;
    transition: var(--asa-transition);
}

.asa-feature-card:hover {
    border-color: var(--asa-primary);
    transform: translateY(-4px);
}

.asa-feature-card .icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.asa-feature-card h3 {
    margin: 0 0 8px 0;
    font-size: 15px;
}

.asa-feature-card p {
    margin: 0;
    font-size: 13px;
    color: var(--asa-text-muted);
}

/* Input Area */
.asa-input-area {
    padding: 20px 24px 30px;
    background: var(--asa-bg-main);
}

.asa-input-wrapper {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.asa-input-container {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    background: var(--asa-bg-message);
    border: 1px solid var(--asa-border);
    border-radius: var(--asa-radius);
    padding: 12px 16px;
    transition: var(--asa-transition);
}

.asa-input-container:focus-within {
    border-color: var(--asa-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.asa-chat-textarea {
    flex: 1;
    background: none;
    border: none;
    color: var(--asa-text-primary);
    font-size: 15px;
    resize: none;
    outline: none;
    min-height: 24px;
    max-height: 200px;
    line-height: 1.5;
    font-family: inherit;
}

.asa-chat-textarea::placeholder {
    color: var(--asa-text-muted);
}

.asa-input-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.asa-send-btn {
    width: 44px;
    height: 44px;
    background: var(--asa-primary);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--asa-transition);
}

.asa-send-btn:hover:not(:disabled) {
    background: var(--asa-primary-dark);
    transform: scale(1.05);
}

.asa-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.asa-send-btn svg {
    width: 20px;
    height: 20px;
    transform: rotate(180deg);
}

.asa-input-hint {
    text-align: center;
    font-size: 11px;
    color: var(--asa-text-muted);
    margin-top: 12px;
}

/* Mobile Responsive - App Style */
@media (max-width: 768px) {
    .asa-chat-fullscreen {
        flex-direction: column;
    }

    .asa-chat-sidebar {
        position: fixed;
        right: 0;
        top: 0;
        bottom: 0;
        width: 85%;
        max-width: 320px;
        transform: translateX(100%);
        z-index: 1001;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    }

    .asa-chat-sidebar.open {
        transform: translateX(0);
    }

    .asa-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .asa-chat-topbar {
        padding: 12px 16px;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .asa-chat-title h1 {
        font-size: 16px;
    }

    .asa-chat-title .logo {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .asa-messages-container {
        padding: 12px;
        padding-bottom: 20px;
    }

    .asa-message {
        gap: 10px;
    }

    .asa-message-avatar {
        width: 32px;
        height: 32px;
        font-size: 16px;
        border-radius: 10px;
    }

    .asa-message-text {
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 12px;
    }

    .asa-message-name {
        font-size: 13px;
    }

    .asa-chat-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .asa-chat-product-card img {
        height: 100px;
    }

    .asa-chat-product-card .info {
        padding: 10px;
    }

    .asa-chat-product-card .title {
        font-size: 12px;
        height: 32px;
    }

    .asa-chat-product-card .price {
        font-size: 16px;
    }

    .asa-quick-actions {
        padding: 12px;
        gap: 8px;
    }

    .asa-quick-btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .asa-feature-cards {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .asa-feature-card {
        padding: 14px;
    }

    .asa-feature-card .icon {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .asa-feature-card h3 {
        font-size: 13px;
    }

    .asa-feature-card p {
        font-size: 11px;
    }

    .asa-welcome-screen {
        padding: 20px;
    }

    .asa-welcome-logo {
        width: 60px;
        height: 60px;
        font-size: 30px;
        border-radius: 18px;
    }

    .asa-welcome-screen h2 {
        font-size: 22px;
    }

    .asa-welcome-screen p {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .asa-input-area {
        padding: 12px 12px 20px;
        /* Safe area for mobile devices with notch */
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    }

    .asa-input-container {
        padding: 10px 12px;
        border-radius: 12px;
    }

    .asa-chat-textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .asa-send-btn {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .asa-input-hint {
        font-size: 10px;
    }

    .asa-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1000;
        backdrop-filter: blur(2px);
    }

    .asa-overlay.active {
        display: block;
    }
}

/* Extra small devices */
@media (max-width: 380px) {
    .asa-chat-products {
        grid-template-columns: 1fr;
    }

    .asa-feature-cards {
        grid-template-columns: 1fr;
    }

    .asa-chat-product-card img {
        height: 140px;
    }
}

/* iOS Safe Areas */
@supports (padding: env(safe-area-inset-bottom)) {
    .asa-chat-fullscreen {
        padding-top: env(safe-area-inset-top);
    }

    .asa-input-area {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
}

/* PWA / Standalone mode */
@media (display-mode: standalone) {
    .asa-chat-fullscreen {
        padding-top: env(safe-area-inset-top);
    }
}

/* ============================================
   GALLERY STYLES - FULLSCREEN MODERN & DYNAMIC
   ============================================ */

/* Fullscreen Gallery Mode */
body.asa-gallery-fullscreen-active,
html.asa-gallery-fullscreen-active {
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.asa-gallery-fullscreen-active #wpadminbar,
body.asa-gallery-fullscreen-active header,
body.asa-gallery-fullscreen-active .site-header,
body.asa-gallery-fullscreen-active .header,
body.asa-gallery-fullscreen-active #header,
body.asa-gallery-fullscreen-active .main-header,
body.asa-gallery-fullscreen-active nav.main-navigation,
body.asa-gallery-fullscreen-active .navigation,
body.asa-gallery-fullscreen-active footer,
body.asa-gallery-fullscreen-active .site-footer,
body.asa-gallery-fullscreen-active .footer,
body.asa-gallery-fullscreen-active #footer,
body.asa-gallery-fullscreen-active .main-footer,
body.asa-gallery-fullscreen-active .ast-header-break-point,
body.asa-gallery-fullscreen-active #masthead,
body.asa-gallery-fullscreen-active .elementor-location-header,
body.asa-gallery-fullscreen-active .elementor-location-footer,
body.asa-gallery-fullscreen-active #ast-mobile-header,
body.asa-gallery-fullscreen-active .ast-mobile-header-wrap,
body.asa-gallery-fullscreen-active .site-branding,
body.asa-gallery-fullscreen-active #colophon,
body.asa-gallery-fullscreen-active .wp-block-template-part,
body.asa-gallery-fullscreen-active aside,
body.asa-gallery-fullscreen-active .sidebar,
body.asa-gallery-fullscreen-active #secondary {
    display: none !important;
}

body.asa-gallery-fullscreen-active .site-content,
body.asa-gallery-fullscreen-active .content-area,
body.asa-gallery-fullscreen-active #content,
body.asa-gallery-fullscreen-active #main,
body.asa-gallery-fullscreen-active .main-content,
body.asa-gallery-fullscreen-active main,
body.asa-gallery-fullscreen-active article,
body.asa-gallery-fullscreen-active .entry-content,
body.asa-gallery-fullscreen-active .page-content,
body.asa-gallery-fullscreen-active .ast-container,
body.asa-gallery-fullscreen-active .site-main {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.asa-gallery-fullscreen {
    direction: rtl;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    position: relative;
    width: 100vw;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: var(--asa-bg-dark);
    color: var(--asa-text-primary);
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Force hide all WordPress elements when gallery exists */
body:has(.asa-gallery-fullscreen) #wpadminbar {
    display: none !important;
}

body:has(.asa-gallery-fullscreen) {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.asa-gallery-container {
    direction: rtl;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    background: var(--asa-bg-dark);
    min-height: 100vh;
}

/* Gallery Header - Sticky */
.asa-gallery-header {
    text-align: center;
    padding: 40px 30px 30px;
    background: linear-gradient(180deg, var(--asa-bg-sidebar) 0%, var(--asa-bg-dark) 100%);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--asa-border);
}

.asa-gallery-header h2 {
    font-size: 36px;
    margin: 0 0 12px 0;
    background: linear-gradient(135deg, var(--asa-primary) 0%, var(--asa-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.asa-gallery-header p {
    color: var(--asa-text-secondary);
    font-size: 16px;
    margin: 0;
}

/* Gallery Search Bar - Large & Prominent */
.asa-gallery-search-wrapper {
    max-width: 700px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

.asa-gallery-search-box {
    display: flex;
    align-items: center;
    background: var(--asa-bg-message);
    border: 2px solid var(--asa-border);
    border-radius: 16px;
    padding: 8px 16px;
    transition: var(--asa-transition);
}

.asa-gallery-search-box:focus-within {
    border-color: var(--asa-primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15);
}

.asa-gallery-search-box .search-icon {
    font-size: 24px;
    margin-left: 12px;
    color: var(--asa-text-muted);
}

.asa-gallery-search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 0;
    font-size: 16px;
    color: var(--asa-text-primary);
    outline: none;
}

.asa-gallery-search-input::placeholder {
    color: var(--asa-text-muted);
}

.asa-gallery-search-btn {
    background: var(--asa-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--asa-transition);
}

.asa-gallery-search-btn:hover {
    background: var(--asa-primary-dark);
    transform: scale(1.02);
}

/* Gallery Filters */
.asa-gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 auto 24px;
    padding: 20px 30px;
    background: var(--asa-bg-sidebar);
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--asa-border);
}

.asa-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.asa-filter-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--asa-text-secondary);
}

.asa-filter-select,
.asa-filter-input {
    padding: 12px 18px;
    border: 1px solid var(--asa-border);
    border-radius: 10px;
    font-size: 14px;
    background: var(--asa-bg-message);
    color: var(--asa-text-primary);
    min-width: 160px;
    cursor: pointer;
    transition: var(--asa-transition);
}

.asa-filter-select:hover,
.asa-filter-input:hover {
    border-color: var(--asa-primary);
}

.asa-filter-select:focus,
.asa-filter-input:focus {
    outline: none;
    border-color: var(--asa-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.asa-filter-select option {
    background: var(--asa-bg-sidebar);
    color: var(--asa-text-primary);
}

.asa-filter-btn {
    padding: 12px 24px;
    background: var(--asa-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--asa-transition);
}

.asa-filter-btn:hover {
    background: var(--asa-primary-dark);
    transform: translateY(-2px);
}

/* Category Pills / Tags */
.asa-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 auto 24px;
    padding: 0 30px 24px;
    justify-content: center;
    border-bottom: 1px solid var(--asa-border);
}

.asa-category-pill {
    padding: 10px 22px;
    background: var(--asa-bg-message);
    border: 2px solid var(--asa-border);
    border-radius: 25px;
    font-size: 14px;
    color: var(--asa-text-secondary);
    cursor: pointer;
    transition: var(--asa-transition);
}

.asa-category-pill:hover {
    border-color: var(--asa-primary);
    color: var(--asa-primary);
    background: rgba(255, 107, 53, 0.1);
}

.asa-category-pill.active {
    background: linear-gradient(135deg, var(--asa-primary) 0%, var(--asa-primary-dark) 100%);
    border-color: var(--asa-primary);
    color: white;
}

/* Tags Section */
.asa-tags-section {
    padding: 0 30px;
    margin-bottom: 20px;
}

.asa-tags-section h4 {
    color: var(--asa-text-muted);
    font-size: 12px;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.asa-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.asa-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--asa-bg-message);
    border: 1px solid var(--asa-border);
    border-radius: 20px;
    font-size: 12px;
    color: var(--asa-text-secondary);
    cursor: pointer;
    transition: var(--asa-transition);
}

.asa-tag:hover {
    border-color: var(--asa-primary);
    color: var(--asa-primary);
}

.asa-tag .tag-icon {
    font-size: 14px;
}

.asa-tag .tag-count {
    background: var(--asa-bg-sidebar);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
}

/* Results Info */
.asa-results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 30px;
    color: var(--asa-text-muted);
    font-size: 14px;
}

.asa-results-count {
    display: flex;
    align-items: center;
    gap: 8px;
}

.asa-view-toggle {
    display: flex;
    gap: 8px;
}

.asa-view-btn {
    background: var(--asa-bg-message);
    border: 1px solid var(--asa-border);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--asa-text-muted);
    transition: var(--asa-transition);
}

.asa-view-btn.active,
.asa-view-btn:hover {
    background: var(--asa-primary);
    color: white;
    border-color: var(--asa-primary);
}

/* Gallery Grid */
.asa-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 24px 30px;
}

/* Large grid (more products visible) */
.asa-gallery-grid.large-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

/* Product Card */
.asa-product-card {
    background: var(--asa-bg-message);
    border-radius: var(--asa-radius);
    overflow: hidden;
    box-shadow: var(--asa-shadow);
    transition: var(--asa-transition);
    text-decoration: none;
    color: var(--asa-text-primary);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid var(--asa-border);
}

.asa-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--asa-primary);
}

.asa-product-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: var(--asa-bg-sidebar);
}

.asa-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.asa-product-card:hover .asa-product-image img {
    transform: scale(1.08);
}

.asa-product-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.asa-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.asa-badge-sale {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.asa-badge-featured {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.asa-badge-new {
    background: linear-gradient(135deg, var(--asa-success) 0%, #059669 100%);
    color: white;
}

.asa-badge-hot {
    background: linear-gradient(135deg, var(--asa-primary) 0%, var(--asa-primary-dark) 100%);
    color: white;
}

.asa-product-quick-view {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 12px;
    background: rgba(30, 30, 46, 0.95);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    color: var(--asa-primary);
    opacity: 0;
    transform: translateY(10px);
    transition: var(--asa-transition);
    cursor: pointer;
    border: 1px solid var(--asa-border);
}

.asa-product-card:hover .asa-product-quick-view {
    opacity: 1;
    transform: translateY(0);
}

.asa-product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.asa-product-category {
    font-size: 11px;
    color: var(--asa-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.asa-product-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--asa-text-primary);
}

.asa-product-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--asa-text-muted);
}

.asa-product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.asa-product-rating .stars {
    color: #f59e0b;
}

.asa-product-orders {
    display: flex;
    align-items: center;
    gap: 4px;
}

.asa-product-price-section {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

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

.asa-product-original-price {
    font-size: 14px;
    color: var(--asa-text-muted);
    text-decoration: line-through;
}

.asa-product-discount {
    font-size: 12px;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.asa-product-cta {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--asa-primary) 0%, var(--asa-primary-dark) 100%);
    color: white;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    transition: var(--asa-transition);
    border: none;
    cursor: pointer;
}

.asa-product-cta:hover {
    background: linear-gradient(135deg, var(--asa-primary-dark) 0%, #c44a1f 100%);
    transform: translateY(-2px);
}

/* Gallery Loading */
.asa-gallery-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--asa-text-secondary);
}

.asa-loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--asa-border);
    border-top-color: var(--asa-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

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

/* Gallery Pagination */
.asa-gallery-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 48px 30px;
}

.asa-page-btn {
    min-width: 44px;
    height: 44px;
    border: 2px solid var(--asa-border);
    background: var(--asa-bg-message);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--asa-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--asa-text-secondary);
}

.asa-page-btn:hover {
    border-color: var(--asa-primary);
    color: var(--asa-primary);
}

.asa-page-btn.active {
    background: linear-gradient(135deg, var(--asa-primary) 0%, var(--asa-primary-dark) 100%);
    border-color: var(--asa-primary);
    color: white;
}

.asa-page-dots {
    color: var(--asa-text-muted);
    padding: 0 8px;
    display: flex;
    align-items: center;
}

/* Empty State */
.asa-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.asa-empty-state .icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.asa-empty-state h3 {
    font-size: 20px;
    margin: 0 0 12px 0;
    color: var(--asa-text-primary);
}

.asa-empty-state p {
    color: var(--asa-text-muted);
    margin: 0;
}

/* Gallery Footer */
.asa-gallery-footer {
    text-align: center;
    padding: 40px 30px 60px;
    border-top: 1px solid var(--asa-border);
    color: var(--asa-text-muted);
    font-size: 13px;
}

.asa-gallery-footer a {
    color: var(--asa-primary);
    text-decoration: none;
}

.asa-gallery-footer a:hover {
    text-decoration: underline;
}

/* Gallery Responsive */
@media (max-width: 768px) {
    .asa-gallery-container {
        padding: 0;
    }

    .asa-gallery-header {
        padding: 30px 20px 20px;
    }

    .asa-gallery-header h2 {
        font-size: 26px;
    }

    .asa-gallery-search-wrapper {
        padding: 0 16px;
    }

    .asa-gallery-filters {
        flex-direction: column;
        padding: 16px;
        gap: 10px;
    }

    .asa-filter-select,
    .asa-filter-input {
        width: 100%;
        min-width: auto;
    }

    .asa-category-pills {
        padding: 0 16px 20px;
        gap: 8px;
    }

    .asa-category-pill {
        padding: 8px 16px;
        font-size: 13px;
    }

    .asa-results-info {
        padding: 12px 16px;
        flex-direction: column;
        gap: 10px;
    }

    .asa-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 16px;
    }

    .asa-product-info {
        padding: 14px;
    }

    .asa-product-title {
        font-size: 13px;
    }

    .asa-product-price {
        font-size: 18px;
    }

    .asa-product-meta {
        font-size: 11px;
        gap: 10px;
    }

    .asa-gallery-pagination {
        padding: 32px 16px;
    }
}

@media (max-width: 480px) {
    .asa-gallery-grid {
        grid-template-columns: 1fr;
    }

    .asa-gallery-header h2 {
        font-size: 22px;
    }
}

/* Desktop Full Width */
@media (min-width: 1200px) {
    .asa-gallery-grid {
        grid-template-columns: repeat(5, 1fr);
        padding: 30px 40px;
    }
}

@media (min-width: 1600px) {
    .asa-gallery-grid {
        grid-template-columns: repeat(6, 1fr);
        padding: 30px 60px;
    }
}

/* ============================================
   SINGLE PRODUCT (SEO Enhanced)
   ============================================ */

.asa-product-single {
    direction: rtl;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

.asa-product-single[data-style="full"] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 40px;
    background: white;
    border-radius: var(--asa-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .asa-product-single[data-style="full"] {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 20px;
    }
}

/* Error */
.asa-error {
    background: #fef2f2;
    color: #991b1b;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #fecaca;
}

/* ============================================
   DAILY DEALS FULLSCREEN PAGE
   ============================================ */

/* Hide WP elements in fullscreen mode */
body.asa-deals-fullscreen-active,
html.asa-deals-fullscreen-active {
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide ALL WordPress theme elements - Classic, Block, and Elementor themes */
body.asa-deals-fullscreen-active #wpadminbar,
body.asa-deals-fullscreen-active header,
body.asa-deals-fullscreen-active .site-header,
body.asa-deals-fullscreen-active .header,
body.asa-deals-fullscreen-active #header,
body.asa-deals-fullscreen-active #masthead,
body.asa-deals-fullscreen-active .main-header,
body.asa-deals-fullscreen-active nav.main-navigation,
body.asa-deals-fullscreen-active .nav-wrapper,
body.asa-deals-fullscreen-active .navigation,
body.asa-deals-fullscreen-active footer,
body.asa-deals-fullscreen-active .site-footer,
body.asa-deals-fullscreen-active .footer,
body.asa-deals-fullscreen-active #footer,
body.asa-deals-fullscreen-active #colophon,
body.asa-deals-fullscreen-active .footer-wrapper,
body.asa-deals-fullscreen-active .main-footer,
body.asa-deals-fullscreen-active .elementor-location-header,
body.asa-deals-fullscreen-active .elementor-location-footer,
body.asa-deals-fullscreen-active aside,
body.asa-deals-fullscreen-active .sidebar,
body.asa-deals-fullscreen-active #secondary,
body.asa-deals-fullscreen-active .wp-block-template-part,
body.asa-deals-fullscreen-active .ast-header-break-point,
body.asa-deals-fullscreen-active #ast-mobile-header,
body.asa-deals-fullscreen-active .ast-mobile-header-wrap,
body.asa-deals-fullscreen-active .site-branding {
    display: none !important;
}

/* Make content full width */
body.asa-deals-fullscreen-active .site-content,
body.asa-deals-fullscreen-active .content-area,
body.asa-deals-fullscreen-active #content,
body.asa-deals-fullscreen-active #main,
body.asa-deals-fullscreen-active .main-content,
body.asa-deals-fullscreen-active main,
body.asa-deals-fullscreen-active #primary,
body.asa-deals-fullscreen-active .entry-content,
body.asa-deals-fullscreen-active .page-content,
body.asa-deals-fullscreen-active article,
body.asa-deals-fullscreen-active .wp-site-blocks,
body.asa-deals-fullscreen-active .wp-block-group,
body.asa-deals-fullscreen-active .wp-block-post-content,
body.asa-deals-fullscreen-active .ast-container,
body.asa-deals-fullscreen-active .site-main {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Force hide admin bar when deals fullscreen exists */
body:has(.asa-deals-fullscreen) #wpadminbar {
    display: none !important;
}

body:has(.asa-deals-fullscreen) {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Main Container */
.asa-deals-container {
    direction: rtl;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(180deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    color: var(--asa-text-primary);
    --asa-deals-accent: #ff6b35;
    --asa-deals-accent-dark: #e55a2b;
    --asa-deals-hot: #ef4444;
    --asa-deals-promo: #8b5cf6;
}

/* Deals Header */
.asa-deals-header {
    padding: 50px 40px 30px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 107, 53, 0.15) 0%, transparent 100%);
}

.asa-deals-header h1 {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 12px 0;
    background: linear-gradient(135deg, #fff 0%, #ff6b35 50%, #ffd93d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(255, 107, 53, 0.3);
}

.asa-deals-header p {
    color: var(--asa-text-muted);
    font-size: 16px;
    margin: 0;
}

.asa-deals-timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    font-size: 14px;
    color: var(--asa-text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.asa-deals-timer .timer-icon {
    font-size: 18px;
}

/* Filter Bar */
.asa-deals-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid var(--asa-border);
    border-bottom: 1px solid var(--asa-border);
}

.asa-deals-filter-select {
    background: var(--asa-bg-message);
    border: 2px solid var(--asa-border);
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--asa-text-primary);
    min-width: 160px;
    cursor: pointer;
    transition: var(--asa-transition);
}

.asa-deals-filter-select:hover {
    border-color: var(--asa-deals-accent);
}

.asa-deals-filter-select:focus {
    outline: none;
    border-color: var(--asa-deals-accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.asa-deals-filter-select option {
    background: var(--asa-bg-secondary);
    color: var(--asa-text-primary);
}

/* Deal Type Pills */
.asa-deals-type-pills {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 24px 40px;
    flex-wrap: wrap;
}

.asa-deals-type-pill {
    padding: 12px 28px;
    background: var(--asa-bg-message);
    border: 2px solid var(--asa-border);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: var(--asa-text-secondary);
    cursor: pointer;
    transition: var(--asa-transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.asa-deals-type-pill:hover {
    border-color: var(--asa-deals-accent);
    color: var(--asa-text-primary);
    transform: translateY(-2px);
}

.asa-deals-type-pill.active {
    background: linear-gradient(135deg, var(--asa-deals-accent) 0%, var(--asa-deals-accent-dark) 100%);
    border-color: var(--asa-deals-accent);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.asa-deals-type-pill.hot.active {
    background: linear-gradient(135deg, var(--asa-deals-hot) 0%, #dc2626 100%);
    border-color: var(--asa-deals-hot);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.asa-deals-type-pill.promo.active {
    background: linear-gradient(135deg, var(--asa-deals-promo) 0%, #7c3aed 100%);
    border-color: var(--asa-deals-promo);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

/* Results Info */
.asa-deals-results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    color: var(--asa-text-muted);
    font-size: 14px;
    border-bottom: 1px solid var(--asa-border);
}

.asa-deals-count {
    font-weight: 600;
    color: var(--asa-text-secondary);
}

.asa-deals-count span {
    color: var(--asa-deals-accent);
}

/* Deals Grid */
.asa-deals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 30px 40px;
}

/* Deal Card */
.asa-deal-card {
    background: var(--asa-bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--asa-border);
    transition: var(--asa-transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.asa-deal-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 107, 53, 0.3);
}

/* Deal Badges */
.asa-deal-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}

.asa-deal-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.asa-deal-badge.discount {
    background: linear-gradient(135deg, var(--asa-deals-hot) 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.asa-deal-badge.hot {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.asa-deal-badge.promo {
    background: linear-gradient(135deg, var(--asa-deals-promo) 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

/* Deal Image */
.asa-deal-image {
    position: relative;
    padding-top: 100%;
    background: linear-gradient(145deg, #1e1e3f 0%, #0d0d1a 100%);
    overflow: hidden;
}

.asa-deal-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.4s ease;
}

.asa-deal-card:hover .asa-deal-image img {
    transform: scale(1.08);
}

/* Deal Info */
.asa-deal-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.asa-deal-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--asa-text-primary);
}

.asa-deal-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--asa-text-muted);
}

.asa-deal-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.asa-deal-rating .stars {
    color: #f59e0b;
}

.asa-deal-orders {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Deal Price Section */
.asa-deal-price-section {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.asa-deal-price {
    font-size: 26px;
    font-weight: 700;
    color: var(--asa-deals-accent);
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.asa-deal-original-price {
    font-size: 14px;
    color: var(--asa-text-muted);
    text-decoration: line-through;
}

.asa-deal-save {
    font-size: 12px;
    color: #4ade80;
    font-weight: 600;
}

/* Deal Promo Code */
.asa-deal-promo-code {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px dashed rgba(139, 92, 246, 0.5);
    border-radius: 8px;
    margin-bottom: 16px;
}

.asa-deal-promo-code .promo-label {
    font-size: 11px;
    color: var(--asa-deals-promo);
    font-weight: 600;
}

.asa-deal-promo-code .promo-code {
    font-size: 13px;
    font-weight: 700;
    color: white;
    font-family: monospace;
    letter-spacing: 1px;
}

/* Deal CTA Button */
.asa-deal-cta {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--asa-deals-accent) 0%, var(--asa-deals-accent-dark) 100%);
    color: white;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    transition: var(--asa-transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
    border-radius: 0 0 16px 16px;
}

.asa-deal-cta:hover {
    background: linear-gradient(135deg, var(--asa-deals-accent-dark) 0%, #c44a1f 100%);
    color: white;
}

/* Loading State */
.asa-deals-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--asa-text-secondary);
}

.asa-deals-loading .asa-loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--asa-border);
    border-top-color: var(--asa-deals-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

/* Empty State */
.asa-deals-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.asa-deals-empty .icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.asa-deals-empty h3 {
    font-size: 20px;
    margin: 0 0 12px 0;
    color: var(--asa-text-primary);
}

.asa-deals-empty p {
    color: var(--asa-text-muted);
    margin: 0;
}

/* Pagination */
.asa-deals-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 48px 30px;
}

.asa-deals-page-btn {
    min-width: 44px;
    height: 44px;
    border: 2px solid var(--asa-border);
    background: var(--asa-bg-message);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--asa-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--asa-text-secondary);
}

.asa-deals-page-btn:hover {
    border-color: var(--asa-deals-accent);
    color: var(--asa-deals-accent);
}

.asa-deals-page-btn.active {
    background: linear-gradient(135deg, var(--asa-deals-accent) 0%, var(--asa-deals-accent-dark) 100%);
    border-color: var(--asa-deals-accent);
    color: white;
}

/* Footer */
.asa-deals-footer {
    text-align: center;
    padding: 40px 30px 60px;
    border-top: 1px solid var(--asa-border);
    color: var(--asa-text-muted);
    font-size: 13px;
}

.asa-deals-footer a {
    color: var(--asa-deals-accent);
    text-decoration: none;
}

.asa-deals-footer a:hover {
    text-decoration: underline;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .asa-deals-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 24px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .asa-deals-header {
        padding: 30px 20px 20px;
    }

    .asa-deals-header h1 {
        font-size: 28px;
    }

    .asa-deals-header p {
        font-size: 14px;
    }

    .asa-deals-filter-bar {
        padding: 16px;
        gap: 12px;
    }

    .asa-deals-filter-select {
        min-width: 100%;
    }

    .asa-deals-type-pills {
        padding: 16px;
        gap: 8px;
    }

    .asa-deals-type-pill {
        padding: 10px 18px;
        font-size: 13px;
    }

    .asa-deals-results-info {
        padding: 12px 16px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .asa-deals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 16px;
    }

    .asa-deal-info {
        padding: 14px;
    }

    .asa-deal-title {
        font-size: 13px;
    }

    .asa-deal-price {
        font-size: 20px;
    }

    .asa-deal-meta {
        font-size: 11px;
        gap: 8px;
    }

    .asa-deals-pagination {
        padding: 32px 16px;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .asa-deals-grid {
        grid-template-columns: 1fr;
    }

    .asa-deals-header h1 {
        font-size: 24px;
    }

    .asa-deals-type-pills {
        flex-direction: column;
        align-items: stretch;
    }

    .asa-deals-type-pill {
        justify-content: center;
    }
}

/* Desktop Full Width */
@media (min-width: 1200px) {
    .asa-deals-grid {
        grid-template-columns: repeat(5, 1fr);
        padding: 30px 40px;
    }
}

@media (min-width: 1600px) {
    .asa-deals-grid {
        grid-template-columns: repeat(6, 1fr);
        padding: 30px 60px;
    }

    .asa-deals-header h1 {
        font-size: 48px;
    }
}
