/**
 * FabricLab Customers Module Styles
 * @version 1.9.24
 */

:root {
    --fl-primary: #f97316;
    --fl-primary-dark: #ea580c;
    --fl-primary-light: #fed7aa;
    --fl-text: #1f2937;
    --fl-text-muted: #6b7280;
    --fl-bg: #f9fafb;
    --fl-white: #ffffff;
    --fl-border: #e5e7eb;
    --fl-shadow: 0 1px 3px rgba(0,0,0,0.1);
    --fl-shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
    --fl-radius: 12px;
    --fl-radius-sm: 8px;
}

/* ==========================================================================
   Content container rounded corners
   ========================================================================== */
.woocommerce-account .content { margin-top: -40px !important; position: relative; z-index: 1; border-radius: var(--fl-radius); overflow: hidden; }
.woocommerce-account .entry-content, .woocommerce-account .page-content { margin-top: -40px !important; position: relative; z-index: 1; }
.woocommerce-account .woocommerce-MyAccount-content { float: none !important; width: 100% !important; max-width: 1150px !important; margin: 0 auto !important; padding: 0 !important; }

/* ==========================================================================
   Horizontal Navigation
   ========================================================================== */
.woocommerce-account .woocommerce-MyAccount-navigation { float: none !important; width: 100% !important; max-width: 1150px !important; margin: 0 auto 40px auto !important; border-bottom: 1px dashed var(--fl-border); padding-bottom: 10px; position: relative; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { display: flex !important; flex-wrap: wrap !important; list-style: none !important; padding: 0 !important; margin: 0 !important; gap: 0 !important; align-items: baseline; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li { margin: 0 !important; padding: 0 !important; border: none !important; background: none !important; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li a { display: block; padding: 12px 20px; font-size: 14px; font-weight: 500; color: var(--fl-text-muted); text-decoration: none; border-bottom: 2px solid transparent; transition: all 0.2s; white-space: nowrap; line-height: 1.4; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover { color: var(--fl-primary); background: none; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a { color: var(--fl-primary); border-bottom-color: var(--fl-primary); font-weight: 600; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--downloads { display: none !important; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout { margin-left: auto !important; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a { color: #4b5563; font-size: 13px; padding: 8px 16px; border-radius: 6px; background: #e5e7eb; border-bottom: none; display: inline-flex; align-items: center; gap: 6px; line-height: 1.4; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a::before { content: ''; display: inline-block; width: 14px; height: 14px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E"); background-size: contain; background-repeat: no-repeat; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a:hover { background: #d1d5db; color: #374151; }

.fl-mobile-menu-toggle { display: none; }
.fl-mobile-logout { display: none; }

@media (max-width: 768px) {
    .fl-mobile-menu-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 16px; background: var(--fl-white); border: 1px solid var(--fl-border); border-radius: var(--fl-radius-sm); font-size: 15px; font-weight: 600; color: var(--fl-text); cursor: pointer; margin-bottom: 0; }
    .fl-mobile-menu-toggle::after { content: ''; width: 10px; height: 10px; border-right: 2px solid var(--fl-text-muted); border-bottom: 2px solid var(--fl-text-muted); transform: rotate(45deg); transition: transform 0.2s; }
    .fl-mobile-menu-toggle.active::after { transform: rotate(-135deg); }
    .woocommerce-account .woocommerce-MyAccount-navigation { border-bottom: none; padding-bottom: 0; margin-bottom: 16px !important; }
    .woocommerce-account .woocommerce-MyAccount-navigation ul { display: none !important; flex-direction: column !important; background: var(--fl-white); border: 1px solid var(--fl-border); border-top: none; border-radius: 0 0 var(--fl-radius-sm) var(--fl-radius-sm); box-shadow: var(--fl-shadow-lg); position: absolute; top: 100%; left: 0; right: 0; z-index: 100; }
    .woocommerce-account .woocommerce-MyAccount-navigation ul.fl-menu-open { display: flex !important; }
    .woocommerce-account .woocommerce-MyAccount-navigation ul li { width: 100%; border-bottom: 1px solid var(--fl-border); }
    .woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child { border-bottom: none; }
    .woocommerce-account .woocommerce-MyAccount-navigation ul li a { padding: 14px 16px; border-bottom: none; font-size: 14px; }
    .woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a { background: #fff7ed; color: var(--fl-primary); border-bottom: none; }
    .woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout { display: none !important; }
    .fl-mobile-logout { display: block; margin-bottom: 24px; }
    .fl-mobile-logout a { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px 16px; background: #e5e7eb; color: #4b5563; font-size: 14px; font-weight: 500; border-radius: var(--fl-radius-sm); text-decoration: none; transition: all 0.2s; }
    .fl-mobile-logout a::before { content: ''; display: inline-block; width: 16px; height: 16px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E"); background-size: contain; background-repeat: no-repeat; }
    .fl-mobile-logout a:hover { background: #d1d5db; color: #374151; }
}

/* ==========================================================================
   Page Header (reusable)
   ========================================================================== */
.fl-page-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.fl-page-header-icon { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--fl-primary), #ec4899); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3); }
.fl-page-header-icon svg { width: 28px; height: 28px; color: white; }
.fl-page-header-text { flex: 1; }
.fl-page-title { font-size: 24px; font-weight: 700; color: var(--fl-text); margin: 0 0 4px 0; }
.fl-page-subtitle { font-size: 14px; color: var(--fl-text-muted); margin: 0; }
@media (max-width: 600px) { .fl-page-header-icon { width: 48px; height: 48px; } .fl-page-header-icon svg { width: 24px; height: 24px; } .fl-page-title { font-size: 20px; } }

/* ==========================================================================
   Welcome Hero Box
   ========================================================================== */
.fl-welcome-hero { position: relative; min-height: 220px; border-radius: var(--fl-radius); margin-bottom: 32px; overflow: visible; display: flex; align-items: center; justify-content: center; background-color: var(--fl-bg); background-repeat: repeat; background-position: center; background-size: 70%; }
.fl-welcome-hero-content { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px 50px 24px 50px; background: var(--fl-white); border: 2px dashed var(--fl-primary); border-radius: var(--fl-radius); box-shadow: var(--fl-shadow-lg); margin: 30px 20px; z-index: 2; }
.fl-welcome-hero-icon { position: absolute; top: -28px; left: 50%; transform: translateX(-50%); width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--fl-primary) 0%, var(--fl-primary-dark) 100%); border-radius: 50%; box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4); z-index: 3; }
.fl-welcome-hero-icon svg { width: 28px; height: 28px; color: var(--fl-white); }
.fl-welcome-hero-text { text-align: center; }
.fl-welcome-hero-title { font-size: 22px; font-weight: 400; color: var(--fl-text); margin: 0; line-height: 1.3; }
.fl-welcome-hero-title strong { font-weight: 700; color: var(--fl-primary-dark); }
.fl-welcome-hero-subtitle { font-size: 14px; color: var(--fl-text-muted); margin: 6px 0 0 0; line-height: 1.4; }
@media (max-width: 600px) { .fl-welcome-hero { min-height: 180px; background-size: 80%; } .fl-welcome-hero-content { padding: 26px 24px 20px 24px; margin: 25px 10px; } .fl-welcome-hero-icon { width: 48px; height: 48px; top: -24px; } .fl-welcome-hero-icon svg { width: 24px; height: 24px; } .fl-welcome-hero-title { font-size: 18px; } .fl-welcome-hero-subtitle { font-size: 13px; } }

/* ==========================================================================
   Login Page
   ========================================================================== */
.fl-login-wrapper { max-width: 1150px; margin: 0 auto; padding: 40px 20px; }
.fl-login-container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 768px) { .fl-login-container { grid-template-columns: 1fr; gap: 30px; } }
.fl-login-card { background: var(--fl-white); border-radius: var(--fl-radius); padding: 32px; box-shadow: var(--fl-shadow-lg); }
.fl-login-title { font-size: 24px; font-weight: 700; color: var(--fl-text); margin: 0 0 24px 0; }
.fl-form-group { margin-bottom: 20px; }
.fl-label { display: block; font-size: 14px; font-weight: 600; color: var(--fl-text); margin-bottom: 8px; }
.fl-label .required { color: var(--fl-primary); }
.fl-input { width: 100%; padding: 12px 16px; font-size: 15px; border: 1px solid var(--fl-border); border-radius: var(--fl-radius-sm); background: var(--fl-white); transition: border-color 0.2s, box-shadow 0.2s; box-sizing: border-box; }
.fl-input:focus { outline: none; border-color: var(--fl-primary); box-shadow: 0 0 0 3px var(--fl-primary-light); }
.fl-input-icon-left { padding-left: 48px; }
.fl-input-with-icon { position: relative; }
.fl-input-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--fl-text-muted); pointer-events: none; }
.fl-input-icon svg { width: 100%; height: 100%; }
.fl-field-note { font-size: 12px; color: var(--fl-text-muted); margin-top: 6px; }
.fl-checkbox { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--fl-text-muted); cursor: pointer; }
.fl-checkbox input { width: 18px; height: 18px; accent-color: var(--fl-primary); }
.fl-form-row-remember { margin-top: 16px; }
.fl-form-submit { margin-top: 24px; }
.fl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; font-size: 15px; font-weight: 600; border: none; border-radius: 6px; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, background 0.2s; text-decoration: none; }
.fl-btn-primary { background: linear-gradient(135deg, var(--fl-primary) 0%, var(--fl-primary-dark) 100%); color: var(--fl-white); }
.fl-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4); background: var(--fl-primary-dark); color: var(--fl-white) !important; }
.fl-btn-full { width: 100%; }
.fl-btn-outline { background: var(--fl-white); border: 1px solid var(--fl-border); color: var(--fl-text-muted); }
.fl-btn-outline:hover { background: var(--fl-bg); border-color: var(--fl-primary); color: var(--fl-primary); }
.fl-btn-sm { padding: 8px 16px; font-size: 13px; }
.fl-btn-sm svg { width: 14px; height: 14px; }
.fl-btn-lg { padding: 14px 32px; font-size: 16px; }
.fl-lost-password { margin-top: 16px; text-align: center; }
.fl-lost-password a { color: var(--fl-primary); text-decoration: none; font-size: 14px; }
.fl-lost-password a:hover { text-decoration: underline; }
.fl-registration-benefits { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--fl-border); }
.fl-benefits-title { font-size: 16px; font-weight: 600; color: var(--fl-text); margin: 0 0 16px 0; }
.fl-benefits-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.fl-benefit-item { display: flex; align-items: flex-start; gap: 12px; }
.fl-benefit-icon { flex-shrink: 0; width: 24px; height: 24px; color: var(--fl-primary); }
.fl-benefit-icon svg { width: 100%; height: 100%; }
.fl-benefit-content { display: flex; flex-direction: column; gap: 2px; }
.fl-benefit-title { font-size: 14px; font-weight: 600; color: var(--fl-text); }
.fl-benefit-desc { font-size: 13px; color: var(--fl-text-muted); }
.fl-password-note { font-size: 13px; color: var(--fl-text-muted); background: var(--fl-bg); padding: 12px; border-radius: var(--fl-radius-sm); margin-bottom: 20px; }
.fl-privacy-note { font-size: 12px; color: var(--fl-text-muted); margin-top: 20px; text-align: center; }
.fl-privacy-note a { color: var(--fl-primary); }

/* ==========================================================================
   Dashboard & Stats & Tiles
   ========================================================================== */
.fl-dashboard { max-width: 1150px; margin: 0 auto; }
.fl-dashboard-section { margin-bottom: 32px; }
.fl-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.fl-section-link { font-size: 14px; font-weight: 500; color: var(--fl-primary); text-decoration: none; }
.fl-section-link:hover { text-decoration: underline; }
.fl-stats-section, .fl-tiles-section { background: var(--fl-white); border-radius: var(--fl-radius); box-shadow: var(--fl-shadow); overflow: hidden; margin-bottom: 32px; }
.fl-stats-header, .fl-tiles-header { padding: 20px 24px; border-bottom: 1px solid #f3f4f6; display: flex; align-items: center; gap: 12px; }
.fl-stats-header-icon, .fl-tiles-header-icon { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--fl-primary), #ec4899); display: flex; align-items: center; justify-content: center; }
.fl-stats-header-icon svg, .fl-tiles-header-icon svg { width: 14px; height: 14px; color: white; }
.fl-stats-title, .fl-tiles-title { font-size: 18px; font-weight: 600; color: var(--fl-text); margin: 0; }
.fl-stats-body, .fl-tiles-body { padding: 24px; }
.fl-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 700px) { .fl-stats-grid { grid-template-columns: 1fr; gap: 16px; } }
a.fl-stat-card { display: flex; align-items: center; gap: 16px; padding: 20px; background: var(--fl-bg); border-radius: 10px; border: 1px solid var(--fl-border); text-decoration: none; transition: all 0.2s; }
a.fl-stat-card:hover { border-color: var(--fl-primary); background: #fff7ed; transform: translateY(-2px); box-shadow: var(--fl-shadow); }
.fl-stat-icon { width: 48px; height: 48px; background: var(--fl-white); border-radius: 12px; display: flex; align-items: center; justify-content: center; box-shadow: var(--fl-shadow); flex-shrink: 0; }
.fl-stat-icon svg { width: 24px; height: 24px; color: var(--fl-primary); }
.fl-stat-content { display: flex; flex-direction: column; gap: 2px; }
.fl-stat-number { font-size: 28px; font-weight: 700; color: var(--fl-text); line-height: 1; }
.fl-stat-label { font-size: 13px; color: var(--fl-text-muted); }
.fl-tiles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .fl-tiles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .fl-tiles-grid { grid-template-columns: 1fr; } }
.fl-tile { display: flex; align-items: center; gap: 16px; padding: 20px; background: var(--fl-bg); border: 1px solid var(--fl-border); border-radius: 10px; text-decoration: none; transition: all 0.2s; position: relative; }
.fl-tile:hover { border-color: var(--fl-primary); background: #fff7ed; transform: translateY(-2px); box-shadow: var(--fl-shadow); }
.fl-tile-icon { flex-shrink: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--fl-white); border-radius: 10px; color: var(--fl-primary); box-shadow: var(--fl-shadow); }
.fl-tile-icon svg { width: 22px; height: 22px; }
.fl-tile-content { flex: 1; min-width: 0; }
.fl-tile-title { display: block; font-size: 15px; font-weight: 600; color: var(--fl-text); }
.fl-tile-desc { display: block; font-size: 13px; color: var(--fl-text-muted); }
.fl-tile-badge { position: absolute; top: 12px; right: 40px; min-width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; background: var(--fl-primary); color: var(--fl-white); font-size: 12px; font-weight: 600; border-radius: 11px; padding: 0 6px; }
.fl-tile-arrow { flex-shrink: 0; font-size: 18px; color: var(--fl-text-muted); transition: transform 0.2s; }
.fl-tile:hover .fl-tile-arrow { transform: translateX(4px); color: var(--fl-primary); }
.fl-tile-privbox { background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%); border-color: #f9a8d4; }
.fl-tile-privbox:hover { background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%); border-color: #ec4899; }
.fl-tile-privbox .fl-tile-icon { background: var(--fl-white); color: #ec4899; }

/* ==========================================================================
   Collection Section (Dashboard)
   ========================================================================== */
.fl-collection-section { background: var(--fl-white); border-radius: var(--fl-radius); box-shadow: var(--fl-shadow); overflow: hidden; margin-bottom: 32px; }
.fl-collection-header { padding: 20px 24px; border-bottom: 1px solid #f3f4f6; display: flex; align-items: center; justify-content: space-between; }
.fl-collection-header-left { display: flex; align-items: center; gap: 12px; }
.fl-collection-header-icon { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--fl-primary), #ec4899); display: flex; align-items: center; justify-content: center; }
.fl-collection-header-icon svg { width: 14px; height: 14px; color: white; }
.fl-collection-title { font-size: 18px; font-weight: 600; color: var(--fl-text); margin: 0; }
.fl-collection-body { padding: 24px; }
.fl-collection-desc { font-size: 14px; color: var(--fl-text-muted); margin: 0 0 20px 0; line-height: 1.5; }
.fl-collection-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
@media (max-width: 900px) { .fl-collection-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .fl-collection-grid { grid-template-columns: repeat(2, 1fr); } }
.fl-collection-item { background: var(--fl-bg); border: 1px solid var(--fl-border); border-radius: 8px; overflow: hidden; transition: all 0.2s; }
.fl-collection-item:hover { transform: translateY(-4px); box-shadow: var(--fl-shadow-lg); border-color: var(--fl-primary); }
.fl-collection-image { display: block; aspect-ratio: 1; overflow: hidden; position: relative; }
.fl-collection-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.fl-collection-item:hover .fl-collection-image img { transform: scale(1.05); }
.fl-collection-info { padding: 10px; }
.fl-collection-name { font-size: 13px; font-weight: 600; color: var(--fl-text); margin: 0 0 4px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-collection-meta { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.fl-collection-qty, .fl-collection-date { font-size: 12px; color: var(--fl-text-muted); line-height: 1.3; }
.fl-collection-empty { text-align: center; padding: 40px 20px; background: var(--fl-bg); border-radius: 10px; }
.fl-collection-empty p { color: var(--fl-text-muted); margin: 0 0 16px 0; }
.fl-collection-mobile-btn { display: none; }
@media (max-width: 600px) {
    .fl-collection-section:not(.fl-collection-full-page) { display: none; }
    .fl-collection-mobile-btn { display: block; background: var(--fl-white); border-radius: var(--fl-radius); box-shadow: var(--fl-shadow); overflow: hidden; margin-bottom: 24px; text-decoration: none; }
    .fl-collection-mobile-btn-inner { display: flex; align-items: center; gap: 16px; padding: 20px 24px; }
    .fl-collection-mobile-btn-icon { width: 44px; height: 44px; background: linear-gradient(135deg, var(--fl-primary), #ec4899); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .fl-collection-mobile-btn-icon svg { width: 22px; height: 22px; color: white; }
    .fl-collection-mobile-btn-text { flex: 1; }
    .fl-collection-mobile-btn-title { display: block; font-size: 16px; font-weight: 600; color: var(--fl-text); margin-bottom: 2px; }
    .fl-collection-mobile-btn-desc { display: block; font-size: 13px; color: var(--fl-text-muted); }
    .fl-collection-mobile-btn-arrow { font-size: 20px; color: var(--fl-text-muted); flex-shrink: 0; }
    .fl-collection-mobile-btn:hover { box-shadow: var(--fl-shadow-lg); }
    .fl-collection-mobile-btn:hover .fl-collection-mobile-btn-arrow { color: var(--fl-primary); }
}

/* ==========================================================================
   Orders Section
   ========================================================================== */
.fl-recent-orders-section { background: var(--fl-white); border-radius: var(--fl-radius); box-shadow: var(--fl-shadow); overflow: hidden; margin-bottom: 32px; }
@media (max-width: 600px) { .fl-dashboard .fl-recent-orders-section { display: none; } }
.fl-orders-header { padding: 20px 24px; border-bottom: 1px solid #f3f4f6; display: flex; align-items: center; justify-content: space-between; }
.fl-orders-header-left { display: flex; align-items: center; gap: 12px; }
.fl-orders-header-icon { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--fl-primary), #ec4899); display: flex; align-items: center; justify-content: center; }
.fl-orders-header-icon svg { width: 14px; height: 14px; color: white; }
.fl-orders-title { font-size: 18px; font-weight: 600; color: var(--fl-text); margin: 0; }
.fl-orders-body { padding: 24px; }
.fl-orders-list { display: flex; flex-direction: column; gap: 12px; }
.fl-order-row { display: grid; grid-template-columns: 100px 120px 180px 1fr 140px; align-items: center; gap: 20px; padding: 18px 20px; background: var(--fl-bg); border: 1px solid var(--fl-border); border-radius: 10px; }
@media (max-width: 900px) { .fl-order-row { grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 20px; } .fl-order-status { grid-column: span 2; } .fl-order-action { grid-column: span 2; text-align: right; } }
.fl-order-number strong { color: var(--fl-text); font-size: 15px; font-weight: 600; }
.fl-order-date { font-size: 14px; color: var(--fl-text-muted); }
.fl-order-total { font-size: 15px; font-weight: 600; color: var(--fl-text); }
.fl-order-total-items { font-size: 12px; color: var(--fl-text-muted); font-weight: 400; }
.fl-order-action { text-align: right; }
.fl-order-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--fl-primary); text-decoration: none; font-weight: 500; padding: 8px 16px; background: rgba(249, 115, 22, 0.1); border-radius: 6px; transition: all 0.2s; }
.fl-order-link:hover { background: var(--fl-primary); color: var(--fl-white); }
.fl-orders-page { max-width: 1150px; margin: 0 auto; }
.fl-orders-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.fl-filter-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; font-size: 14px; font-weight: 500; color: var(--fl-text-muted); background: var(--fl-white); border: 1px solid var(--fl-border); border-radius: 6px; cursor: pointer; transition: all 0.2s; text-decoration: none; }
.fl-filter-btn:hover { border-color: var(--fl-primary); color: var(--fl-primary); }
.fl-filter-btn.active { background: var(--fl-primary); border-color: var(--fl-primary); color: var(--fl-white); }
.fl-filter-btn .fl-filter-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; font-size: 11px; font-weight: 600; background: rgba(0,0,0,0.1); border-radius: 10px; }
.fl-filter-btn.active .fl-filter-count { background: rgba(255,255,255,0.3); }
@media (max-width: 600px) { .fl-orders-filters { gap: 6px; } .fl-filter-btn { padding: 8px 12px; font-size: 13px; } }
.fl-orders-pagination { display: flex; justify-content: center; gap: 8px; padding: 24px; border-top: 1px solid #f3f4f6; }
.fl-orders-pagination a, .fl-orders-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; font-size: 14px; font-weight: 500; color: var(--fl-text-muted); background: var(--fl-bg); border: 1px solid var(--fl-border); border-radius: 6px; text-decoration: none; transition: all 0.2s; }
.fl-orders-pagination a:hover { border-color: var(--fl-primary); color: var(--fl-primary); }
.fl-orders-pagination .current { background: var(--fl-primary); border-color: var(--fl-primary); color: var(--fl-white); }

/* ==========================================================================
   Promo Banner & Footer
   ========================================================================== */
.fl-promo-banner { position: relative; display: flex; align-items: stretch; height: 125px; border-radius: var(--fl-radius); background-color: var(--fl-bg); background-size: cover; background-position: center; background-repeat: no-repeat; margin-bottom: 32px; overflow: hidden; }
.fl-promo-banner-content { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 20px 80px 20px 32px; width: 50%; min-width: 360px; z-index: 2; }
.fl-promo-banner-content::before { content: ''; position: absolute; top: 0; left: 0; right: 130px; bottom: 0; transform: skewX(-15deg); transform-origin: top left; z-index: -1; opacity: 0.5; }
.fl-promo-banner-title { font-size: 26px; font-weight: 700; margin: 0; line-height: 1.2; }
.fl-promo-banner-subtitle { font-size: 15px; margin: 0; line-height: 1.3; }
.fl-promo-banner-right { flex: 1; display: flex; align-items: center; justify-content: flex-end; padding-right: 32px; }
.fl-promo-banner-btn { display: inline-flex; align-items: center; gap: 6px; padding: 14px 28px; font-size: 15px; font-weight: 600; border-radius: 6px; text-decoration: none; transition: all 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.fl-promo-banner-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
@media (max-width: 768px) { .fl-promo-banner { display: none; } }
.fl-dashboard-footer { text-align: center; padding: 24px 20px 32px 20px; margin-top: 0; }
.fl-dashboard-footer-text { font-size: 28px; font-style: italic; font-weight: 400; color: var(--fl-text-muted); margin: 0; line-height: 1.4; }
@media (max-width: 600px) { .fl-dashboard-footer { padding: 20px 16px 24px 16px; } .fl-dashboard-footer-text { font-size: 20px; } }

/* ==========================================================================
   Status Badges & Empty States
   ========================================================================== */
.fl-status-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; font-size: 13px; font-weight: 500; border-radius: 6px; white-space: nowrap; background: #dcfce7; color: #166534; }
.fl-status-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.fl-status-completed { background: #d1fae5; color: #065f46; }
.fl-status-processing { background: #fef3c7; color: #92400e; }
.fl-status-on-hold { background: #dbeafe; color: #1e40af; }
.fl-status-pending { background: #fef3c7; color: #92400e; }
.fl-status-cancelled, .fl-status-failed { background: #fee2e2; color: #991b1b; }
.fl-status-refunded { background: #f3f4f6; color: #4b5563; }
.fl-status-gotowe-do-wysylki { background: #dcfce7; color: #166534; }
.fl-status-shipped { background: #dbeafe; color: #1e40af; }
.fl-empty-orders { text-align: center; padding: 40px 20px; background: var(--fl-bg); border-radius: 10px; }
.fl-empty-orders p { color: var(--fl-text-muted); margin: 0 0 16px 0; }
.fl-login-required { text-align: center; padding: 40px 20px; background: var(--fl-bg); border-radius: var(--fl-radius); color: var(--fl-text-muted); }
.fl-privbox-section { margin-bottom: 32px; }

/* ==========================================================================
   VIEW ORDER - Invoice Styles
   ========================================================================== */
.fl-view-order { max-width: 1150px; margin: 0 auto; }
.fl-order-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.fl-back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--fl-text-muted); text-decoration: none; padding: 10px 16px; background: var(--fl-white); border: 1px solid var(--fl-border); border-radius: 6px; transition: all 0.2s; }
.fl-back-link:hover { border-color: var(--fl-primary); color: var(--fl-primary); }
.fl-back-link svg { width: 18px; height: 18px; }
.fl-print-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--fl-text-muted); background: var(--fl-white); border: 1px solid var(--fl-border); border-radius: 6px; padding: 10px 16px; cursor: pointer; transition: all 0.2s; text-decoration: none; }
.fl-print-btn:hover { border-color: var(--fl-primary); color: var(--fl-primary); }
.fl-print-btn svg { width: 18px; height: 18px; }

/* Order Journey */
.fl-order-journey { margin-bottom: 24px; }
.fl-order-journey .fl-progress-container.fl-journey { padding: 16px 0; background: var(--fl-white); border: 1px solid var(--fl-border); border-radius: var(--fl-radius); box-shadow: var(--fl-shadow); overflow-x: auto; }
.fl-order-journey .fl-progress-inner { display: flex; align-items: stretch; gap: 12px; min-width: 700px; padding: 0 24px; }
.fl-order-journey .fl-journey-section { flex: 1; padding: 14px 16px; border-radius: 10px; background: var(--fl-white); border: 1px dashed var(--fl-border); }
.fl-order-journey .fl-journey-customer { flex: 1.3; }
.fl-order-journey .fl-journey-label { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--fl-border); color: var(--fl-text-muted); }
.fl-order-journey .fl-journey-customer .fl-journey-label svg { color: var(--fl-primary); }
.fl-order-journey .fl-journey-fabriclab .fl-journey-label svg { color: #10b981; }
.fl-order-journey .fl-journey-steps { display: flex; gap: 4px; }
.fl-order-journey .fl-journey-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px; border-radius: 6px; }
.fl-order-journey .fl-step-icon { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 11px; }
.fl-order-journey .fl-step-text { font-size: 9px; font-weight: 500; color: var(--fl-text-muted); text-align: center; line-height: 1.2; }
.fl-order-journey .fl-journey-step.completed .fl-step-icon { background: #d1fae5; color: #10b981; border: 1px solid #10b981; }
.fl-order-journey .fl-journey-step.completed .fl-step-text { color: var(--fl-text); }
.fl-order-journey .fl-journey-step.active .fl-step-icon { background: var(--fl-primary); color: white; box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2); }
.fl-order-journey .fl-journey-step.active .fl-step-text { color: var(--fl-text); font-weight: 600; }
.fl-order-journey .fl-journey-step.pending .fl-step-icon { background: var(--fl-bg); color: var(--fl-text-muted); border: 1px solid var(--fl-border); }
.fl-order-journey .fl-journey-step.pending .fl-step-text { color: var(--fl-text-muted); }
.fl-order-journey .fl-journey-divider { display: flex; align-items: center; justify-content: center; padding: 0 4px; color: var(--fl-border); }
.fl-order-journey .fl-journey-divider svg { width: 16px; height: 16px; }
@media (max-width: 768px) { .fl-order-journey .fl-progress-inner { flex-direction: column; gap: 12px; min-width: auto; } .fl-order-journey .fl-journey-customer, .fl-order-journey .fl-journey-fabriclab { flex: 1; } .fl-order-journey .fl-journey-divider { transform: rotate(90deg); padding: 4px 0; } .fl-order-journey .fl-journey-steps { flex-wrap: wrap; justify-content: center; } .fl-order-journey .fl-journey-step { min-width: 55px; } }

/* Invoice */
.fl-invoice { background: var(--fl-white); border-radius: var(--fl-radius); box-shadow: var(--fl-shadow); overflow: hidden; }
.fl-invoice-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 32px; border-bottom: 2px dashed var(--fl-border); background: linear-gradient(135deg, #fef7ed 0%, #fff7ed 100%); }
.fl-invoice-header-left { display: flex; align-items: center; gap: 16px; }
.fl-invoice-logo { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--fl-white); box-shadow: var(--fl-shadow); display: flex; align-items: center; justify-content: center; }
.fl-invoice-logo img { width: 100%; height: 100%; object-fit: contain; }
.fl-invoice-company { display: flex; flex-direction: column; gap: 2px; }
.fl-invoice-company strong { font-size: 20px; color: var(--fl-text); }
.fl-invoice-company span { font-size: 13px; color: var(--fl-text-muted); }
.fl-invoice-header-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fl-invoice-number { display: flex; flex-direction: column; gap: 2px; }
.fl-invoice-label { font-size: 12px; color: var(--fl-text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.fl-invoice-value { font-size: 28px; font-weight: 700; color: var(--fl-primary); }
.fl-invoice-meta { display: flex; flex-wrap: wrap; gap: 24px; padding: 24px 32px; border-bottom: 1px solid var(--fl-border); background: var(--fl-bg); }
.fl-meta-item { display: flex; align-items: center; gap: 12px; }
.fl-meta-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--fl-white); display: flex; align-items: center; justify-content: center; box-shadow: var(--fl-shadow); }
.fl-meta-icon svg { width: 20px; height: 20px; color: var(--fl-primary); }
.fl-meta-content { display: flex; flex-direction: column; gap: 2px; }
.fl-meta-label { font-size: 12px; color: var(--fl-text-muted); }
.fl-meta-value { font-size: 14px; font-weight: 600; color: var(--fl-text); }
.fl-payment-status .fl-meta-icon { transition: all 0.2s; }
.fl-payment-status.fl-paid .fl-meta-icon { background: #d1fae5; }
.fl-payment-status.fl-paid .fl-meta-icon svg { color: #059669; }
.fl-payment-status.fl-unpaid .fl-meta-icon { background: #fef3c7; }
.fl-payment-status.fl-unpaid .fl-meta-icon svg { color: #d97706; }
.fl-payment-status.fl-paid .fl-payment-value { color: #059669; font-weight: 600; }
.fl-payment-status.fl-unpaid .fl-payment-value { color: #d97706; }
@media (max-width: 768px) { .fl-invoice-meta { flex-direction: column; gap: 16px; } }
.fl-invoice-addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 32px; border-bottom: 1px solid var(--fl-border); }
@media (max-width: 768px) { .fl-invoice-addresses { grid-template-columns: 1fr; } }
.fl-address-box { background: var(--fl-bg); border-radius: 10px; padding: 20px; }
.fl-address-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--fl-text); margin: 0 0 12px 0; }
.fl-address-title svg { width: 18px; height: 18px; color: var(--fl-primary); }
.fl-address-content { font-size: 14px; color: var(--fl-text-muted); line-height: 1.6; }
.fl-same-address-notice { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #d1fae5; color: #065f46; border-radius: 8px; font-size: 14px; font-weight: 500; }
.fl-same-address-icon { width: 20px; height: 20px; background: #065f46; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.fl-invoice-products { padding: 32px; border-bottom: 1px solid var(--fl-border); }
.fl-products-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: var(--fl-text); margin: 0 0 20px 0; }
.fl-products-title svg { width: 20px; height: 20px; color: var(--fl-primary); }
.fl-products-table { border: 1px solid var(--fl-border); border-radius: 10px; overflow: hidden; }
.fl-products-header { display: grid; grid-template-columns: 1fr 160px 80px 60px 120px; gap: 16px; padding: 14px 20px; background: var(--fl-bg); font-size: 12px; font-weight: 600; color: var(--fl-text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.fl-product-row { display: grid; grid-template-columns: 1fr 160px 80px 60px 120px; gap: 16px; padding: 20px; border-top: 1px solid var(--fl-border); align-items: center; }
.fl-product-row:first-child { border-top: none; }
.fl-col-vat { text-align: center; font-size: 13px; color: var(--fl-text-muted); }
@media (max-width: 768px) { .fl-products-header { display: none; } .fl-product-row { grid-template-columns: 1fr !important; gap: 12px; } .fl-col-price, .fl-col-qty, .fl-col-total, .fl-col-vat { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px dashed var(--fl-border); } .fl-col-price::before { content: 'Cena jedn.:'; font-weight: 500; color: var(--fl-text-muted); } .fl-col-qty::before { content: 'Ilość:'; font-weight: 500; color: var(--fl-text-muted); } .fl-col-vat::before { content: 'VAT:'; font-weight: 500; color: var(--fl-text-muted); } .fl-col-total::before { content: 'Suma:'; font-weight: 500; color: var(--fl-text-muted); } }
.fl-product-info { display: flex; align-items: center; gap: 16px; }
.fl-product-image { width: 80px; height: 80px; border-radius: 8px; overflow: hidden; background: var(--fl-bg); flex-shrink: 0; border: 1px solid var(--fl-border); }
.fl-product-image img { width: 100%; height: 100%; object-fit: cover; }
.fl-product-image.fl-no-image { display: flex; align-items: center; justify-content: center; }
.fl-product-image.fl-no-image svg { width: 32px; height: 32px; color: var(--fl-text-muted); opacity: 0.5; }
.fl-product-details { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fl-product-name { font-size: 15px; font-weight: 600; color: var(--fl-text); line-height: 1.3; }
.fl-product-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.fl-meta-tag { display: inline-block; font-size: 11px; color: var(--fl-text-muted); background: var(--fl-bg); padding: 3px 8px; border-radius: 4px; }
.fl-product-sku { font-size: 12px; color: var(--fl-text-muted); display: none; }
.fl-col-price, .fl-col-qty, .fl-col-total { text-align: center; }
.fl-price-value, .fl-qty-value { font-size: 15px; font-weight: 600; color: var(--fl-text); }
.fl-price-unit, .fl-qty-unit { font-size: 12px; color: var(--fl-text-muted); margin-left: 2px; }
.fl-col-total { font-size: 15px; font-weight: 700; color: var(--fl-text); }
.fl-invoice-totals { padding: 32px; display: flex; justify-content: flex-end; border-bottom: 1px solid var(--fl-border); }
.fl-totals-table { width: 100%; max-width: 350px; }
.fl-total-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--fl-border); }
.fl-total-row:last-child { border-bottom: none; }
.fl-total-label { font-size: 14px; color: var(--fl-text-muted); }
.fl-total-value { font-size: 14px; font-weight: 600; color: var(--fl-text); }
.fl-total-discount .fl-total-value { color: #059669; }
.fl-total-final { padding: 16px 0 8px 0; margin-top: 8px; border-top: 2px solid var(--fl-text); border-bottom: none; }
.fl-total-final .fl-total-label { font-size: 16px; font-weight: 600; color: var(--fl-text); }
.fl-total-final .fl-total-value { font-size: 20px; font-weight: 700; color: var(--fl-primary); }
.fl-invoice-notes { padding: 32px; border-bottom: 1px solid var(--fl-border); }
.fl-notes-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--fl-text); margin: 0 0 12px 0; }
.fl-notes-title svg { width: 18px; height: 18px; color: var(--fl-primary); }
.fl-notes-content { font-size: 14px; color: var(--fl-text-muted); line-height: 1.6; background: var(--fl-bg); padding: 16px; border-radius: 8px; }
.fl-invoice-footer { padding: 24px 32px; text-align: center; background: var(--fl-bg); }
.fl-invoice-footer p { font-size: 15px; font-style: italic; color: var(--fl-text-muted); margin: 0; }
.fl-order-error { text-align: center; padding: 60px 20px; background: var(--fl-white); border-radius: var(--fl-radius); box-shadow: var(--fl-shadow); }
.fl-order-error p { font-size: 16px; color: var(--fl-text-muted); margin: 0 0 20px 0; }
.fl-order-bottom-actions { display: flex; justify-content: center; gap: 12px; margin-top: 24px; padding: 0 20px; }
.fl-order-bottom-actions .fl-btn { min-width: auto; }
@media (max-width: 600px) { .fl-order-bottom-actions { flex-direction: column; gap: 10px; } .fl-order-bottom-actions .fl-btn { width: 100%; } }

/* ==========================================================================
   My Collection Page - Full Page
   ========================================================================== */
.fl-collection-page-wrapper { max-width: 1150px; margin: 0 auto; }
.fl-info-box { display: flex; align-items: flex-start; gap: 16px; padding: 20px 24px; background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); border: 1px solid #93c5fd; border-radius: var(--fl-radius); margin-bottom: 24px; position: relative; }
.fl-info-box-icon { flex-shrink: 0; width: 40px; height: 40px; background: #3b82f6; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.fl-info-box-icon svg { width: 20px; height: 20px; color: white; }
.fl-info-box-content { flex: 1; }
.fl-info-box-title { font-size: 15px; font-weight: 600; color: #1e40af; margin: 0 0 6px 0; }
.fl-info-box-text { font-size: 14px; color: #1e40af; line-height: 1.5; margin: 0; opacity: 0.85; }
.fl-info-box-close { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background: transparent; border: none; font-size: 20px; color: #3b82f6; cursor: pointer; border-radius: 4px; transition: all 0.2s; }
.fl-info-box-close:hover { background: rgba(59, 130, 246, 0.1); color: #1e40af; }
.fl-info-box-addresses { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); border-color: #86efac; }
.fl-info-box-addresses .fl-info-box-icon { background: #22c55e; }
.fl-info-box-addresses .fl-info-box-title { color: #166534; }
.fl-info-box-addresses .fl-info-box-text { color: #166534; }
.fl-collection-full-page { margin-bottom: 32px; display: block !important; }
.fl-collection-full-page .fl-collection-header { padding: 20px 24px; border-bottom: 1px solid #f3f4f6; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.fl-collection-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 10px; font-size: 13px; font-weight: 600; background: var(--fl-primary); color: white; border-radius: 14px; margin-left: 8px; }
.fl-view-toggle { display: flex; gap: 4px; background: var(--fl-bg); border-radius: 8px; padding: 4px; }
.fl-view-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: transparent; border: none; border-radius: 6px; cursor: pointer; transition: all 0.2s; color: var(--fl-text-muted); }
.fl-view-btn svg { width: 18px; height: 18px; }
.fl-view-btn:hover { color: var(--fl-primary); background: var(--fl-white); }
.fl-view-btn.active { background: var(--fl-white); color: var(--fl-primary); box-shadow: var(--fl-shadow); }

/* Category Filters - Desktop (buttons) - only when <=4 categories */
.fl-collection-filters.fl-filters-desktop { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 24px; border-bottom: 1px solid #f3f4f6; background: var(--fl-bg); }

/* Category Filters - Dropdown (for mobile OR >4 categories) */
.fl-collection-filters.fl-filters-dropdown { display: none; padding: 16px 24px; border-bottom: 1px solid #f3f4f6; background: var(--fl-bg); }
.fl-filter-dropdown { position: relative; width: 100%; }
.fl-filter-dropdown-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 16px; background: var(--fl-white); border: 1px solid var(--fl-border); border-radius: var(--fl-radius-sm); font-size: 15px; font-weight: 500; color: var(--fl-text); cursor: pointer; transition: all 0.2s; }
.fl-filter-dropdown-btn:hover { border-color: var(--fl-primary); }
.fl-filter-dropdown-btn.open { border-color: var(--fl-primary); border-radius: var(--fl-radius-sm) var(--fl-radius-sm) 0 0; }
.fl-filter-dropdown-text { flex: 1; text-align: left; }
.fl-filter-dropdown-count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 8px; font-size: 12px; font-weight: 600; background: var(--fl-primary); color: white; border-radius: 12px; margin-right: 8px; }
.fl-filter-dropdown-arrow { width: 16px; height: 16px; color: var(--fl-text-muted); transition: transform 0.2s; }
.fl-filter-dropdown-btn.open .fl-filter-dropdown-arrow { transform: rotate(180deg); }
.fl-filter-dropdown-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--fl-white); border: 1px solid var(--fl-primary); border-top: none; border-radius: 0 0 var(--fl-radius-sm) var(--fl-radius-sm); box-shadow: var(--fl-shadow-lg); z-index: 100; max-height: 300px; overflow-y: auto; }
.fl-filter-dropdown-menu.open { display: block; }
.fl-filter-dropdown-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font-size: 14px; color: var(--fl-text); text-decoration: none; border-bottom: 1px solid var(--fl-border); transition: all 0.2s; }
.fl-filter-dropdown-item:last-child { border-bottom: none; }
.fl-filter-dropdown-item:hover { background: var(--fl-bg); }
.fl-filter-dropdown-item.active { background: #fff7ed; color: var(--fl-primary); font-weight: 600; }
.fl-filter-dropdown-item .fl-filter-count { font-size: 12px; color: var(--fl-text-muted); background: var(--fl-bg); padding: 2px 8px; border-radius: 10px; }
.fl-filter-dropdown-item.active .fl-filter-count { background: var(--fl-primary); color: white; }

/* Force dropdown when >4 categories */
.fl-use-dropdown .fl-collection-filters.fl-filters-desktop { display: none; }
.fl-use-dropdown .fl-collection-filters.fl-filters-dropdown { display: block; }

.fl-collection-results { font-size: 14px; color: var(--fl-text-muted); margin: 0 0 20px 0; }
.fl-collection-results strong { color: var(--fl-text); }

/* SKU Hover Overlay - styled as button */
.fl-collection-sku-overlay { position: absolute; bottom: 8px; left: 8px; right: 8px; padding: 6px 10px; background: var(--fl-primary); color: white; font-size: 11px; font-weight: 600; text-align: center; opacity: 0; transition: opacity 0.2s; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Collection Button with icon */
.fl-collection-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 6px 8px; font-size: 12px; font-weight: 600; text-align: center; background: var(--fl-white); color: var(--fl-primary); border-radius: 4px; text-decoration: none; transition: all 0.2s; border: 1px solid var(--fl-border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-sizing: border-box; }
.fl-collection-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.fl-collection-btn .fl-btn-label { overflow: hidden; text-overflow: ellipsis; }
.fl-collection-btn:hover { background: var(--fl-primary); color: var(--fl-white); border-color: var(--fl-primary); }

/* Shop CTA Tile */
.fl-collection-cta { background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%); border: 2px dashed var(--fl-primary); }
.fl-collection-cta:hover { transform: translateY(-4px); box-shadow: var(--fl-shadow-lg); background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%); }
.fl-collection-cta-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1; padding: 20px; text-decoration: none; gap: 12px; }
.fl-cta-icon { width: 48px; height: 48px; background: var(--fl-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.fl-cta-icon svg { width: 24px; height: 24px; color: white; }
.fl-cta-text { font-size: 13px; font-weight: 600; color: var(--fl-primary-dark); text-align: center; }

/* Grid View Modes */
.fl-collection-grid.fl-view-mode-large { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fl-collection-grid.fl-view-mode-small { grid-template-columns: repeat(6, 1fr); gap: 10px; }

/* Small view - hide name in info, show overlay on hover */
.fl-view-mode-small .fl-collection-item { border-radius: 6px; }
.fl-view-mode-small .fl-collection-item:hover .fl-collection-sku-overlay { opacity: 1; }
.fl-view-mode-small .fl-collection-info { padding: 8px; }
.fl-view-mode-small .fl-collection-name { display: none; }
.fl-view-mode-small .fl-collection-meta { display: none; }
.fl-view-mode-small .fl-collection-btn { padding: 5px 6px; font-size: 11px; }
.fl-view-mode-small .fl-collection-btn svg { width: 12px; height: 12px; }

/* Large view - full items with all info, no overlay */
.fl-view-mode-large .fl-collection-sku-overlay { display: none; }
.fl-view-mode-large .fl-collection-item { border-radius: 10px; }
.fl-view-mode-large .fl-collection-info { padding: 12px; }
.fl-view-mode-large .fl-collection-name { display: block; font-size: 13px; margin-bottom: 4px; }
.fl-view-mode-large .fl-collection-meta { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.fl-view-mode-large .fl-collection-btn { padding: 8px 10px; font-size: 12px; }

/* CTA tile adjustments */
.fl-view-mode-small .fl-collection-cta .fl-cta-icon { width: 36px; height: 36px; }
.fl-view-mode-small .fl-collection-cta .fl-cta-icon svg { width: 18px; height: 18px; }
.fl-view-mode-small .fl-collection-cta .fl-cta-text { font-size: 11px; }

@media (max-width: 1024px) { .fl-collection-grid.fl-view-mode-large { grid-template-columns: repeat(3, 1fr); } .fl-collection-grid.fl-view-mode-small { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 768px) { 
    .fl-collection-grid.fl-view-mode-large { grid-template-columns: repeat(2, 1fr); } 
    .fl-collection-grid.fl-view-mode-small { grid-template-columns: repeat(4, 1fr); } 
    .fl-info-box { flex-direction: column; text-align: center; } 
    .fl-info-box-icon { margin: 0 auto; } 
    /* Always show dropdown on mobile */
    .fl-collection-filters.fl-filters-desktop { display: none; } 
    .fl-collection-filters.fl-filters-dropdown { display: block; }
    /* Tablet: icon-only button */
    .fl-collection-btn .fl-btn-label { display: none; }
    .fl-collection-btn { padding: 8px; }
}
@media (max-width: 480px) { 
    .fl-collection-grid.fl-view-mode-large { grid-template-columns: repeat(2, 1fr); gap: 10px; } 
    .fl-collection-grid.fl-view-mode-small { grid-template-columns: repeat(3, 1fr); gap: 8px; } 
    .fl-view-toggle { display: none; } 
    /* Always show overlay on mobile since no hover */
    .fl-view-mode-small .fl-collection-sku-overlay { opacity: 1; }
}

/* ==========================================================================
   My Addresses Page
   ========================================================================== */
.fl-addresses-page { max-width: 1150px; margin: 0 auto; }
.fl-addresses-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.fl-addresses-grid.fl-addresses-cols-1 { grid-template-columns: 1fr; max-width: 560px; }
@media (max-width: 768px) { .fl-addresses-grid { grid-template-columns: 1fr; } }
.fl-address-card { background: var(--fl-white); border-radius: var(--fl-radius); box-shadow: var(--fl-shadow); overflow: hidden; display: flex; flex-direction: column; }
.fl-address-card-header { display: flex; align-items: center; gap: 16px; padding: 24px; border-bottom: 1px solid var(--fl-border); background: var(--fl-bg); }
.fl-address-card-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fl-address-card-icon svg { width: 24px; height: 24px; color: white; }
.fl-icon-billing { background: linear-gradient(135deg, var(--fl-primary), #dc2626); }
.fl-icon-shipping { background: linear-gradient(135deg, #3b82f6, #8b5cf6); }
.fl-address-card-title { font-size: 18px; font-weight: 600; color: var(--fl-text); margin: 0; }
.fl-address-card-body { flex: 1; padding: 24px; }
.fl-address-content { font-size: 15px; color: var(--fl-text); line-height: 1.7; }
.fl-address-content br { display: block; margin-bottom: 4px; }
.fl-address-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px 0; min-height: 120px; }
.fl-address-empty-icon { width: 48px; height: 48px; background: var(--fl-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.fl-address-empty-icon svg { width: 24px; height: 24px; color: var(--fl-text-muted); }
.fl-address-empty p { font-size: 14px; color: var(--fl-text-muted); margin: 0; }
.fl-address-card-footer { padding: 16px 24px; border-top: 1px solid var(--fl-border); background: var(--fl-bg); }
.fl-address-card-footer .fl-btn { width: 100%; }

/* ==========================================================================
   Edit Address Page
   ========================================================================== */
.fl-edit-address-page { max-width: 700px; margin: 0 auto; }
.fl-form-card { background: var(--fl-white); border-radius: var(--fl-radius); box-shadow: var(--fl-shadow); overflow: hidden; margin-bottom: 24px; }
.fl-form-card-header { display: flex; align-items: center; gap: 16px; padding: 24px 32px; border-bottom: 1px solid var(--fl-border); background: var(--fl-bg); }
.fl-form-card-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fl-form-card-icon svg { width: 28px; height: 28px; color: white; }
.fl-icon-personal { background: linear-gradient(135deg, var(--fl-primary), #ec4899); }
.fl-icon-security { background: linear-gradient(135deg, #10b981, #14b8a6); }
.fl-form-card-title-wrap { flex: 1; }
.fl-form-card-title { font-size: 20px; font-weight: 600; color: var(--fl-text); margin: 0 0 4px 0; }
.fl-form-card-subtitle { font-size: 14px; color: var(--fl-text-muted); margin: 0; }
.fl-form-card-body { padding: 32px; }
.fl-form-fields { display: flex; flex-direction: column; gap: 0; }
.fl-form-row { display: grid; gap: 20px; }
.fl-form-row-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .fl-form-row-2 { grid-template-columns: 1fr; } }
.fl-form-actions { display: flex; gap: 12px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--fl-border); }
.fl-form-submit-section { text-align: center; padding: 8px 0 16px 0; }
.fl-password-hint { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--fl-bg); border-radius: var(--fl-radius-sm); font-size: 13px; color: var(--fl-text-muted); margin-top: 8px; }
.fl-hint-icon { width: 18px; height: 18px; flex-shrink: 0; }
.fl-hint-icon svg { width: 100%; height: 100%; }

/* ==========================================================================
   Edit Account Page
   ========================================================================== */
.fl-edit-account-page { max-width: 700px; margin: 0 auto; }
.fl-account-form .fl-form-card { margin-bottom: 24px; }
.fl-account-form .fl-form-card:last-of-type { margin-bottom: 0; }

/* WooCommerce form field overrides for address/account pages */
.fl-address-form .form-row,
.fl-account-form .form-row { margin-bottom: 20px; }
.fl-address-form .form-row label,
.fl-account-form label { display: block; font-size: 14px; font-weight: 600; color: var(--fl-text); margin-bottom: 8px; }
.fl-address-form .form-row label .required,
.fl-account-form label .required { color: var(--fl-primary); }
.fl-address-form .form-row input.input-text,
.fl-address-form .form-row select,
.fl-account-form input.input-text,
.fl-account-form select { width: 100%; padding: 12px 16px; font-size: 15px; border: 1px solid var(--fl-border); border-radius: var(--fl-radius-sm); background: var(--fl-white); transition: border-color 0.2s, box-shadow 0.2s; box-sizing: border-box; }
.fl-address-form .form-row input.input-text:focus,
.fl-address-form .form-row select:focus,
.fl-account-form input.input-text:focus,
.fl-account-form select:focus { outline: none; border-color: var(--fl-primary); box-shadow: 0 0 0 3px var(--fl-primary-light); }
.fl-address-form .form-row-first,
.fl-address-form .form-row-last { width: 48%; float: left; }
.fl-address-form .form-row-last { float: right; }
.fl-address-form .form-row-wide { clear: both; }
@media (max-width: 600px) {
    .fl-address-form .form-row-first,
    .fl-address-form .form-row-last { width: 100%; float: none; }
}

/* Select2 overrides */
.fl-address-form .select2-container,
.fl-account-form .select2-container { width: 100% !important; }
.fl-address-form .select2-container--default .select2-selection--single,
.fl-account-form .select2-container--default .select2-selection--single { height: 48px; border: 1px solid var(--fl-border); border-radius: var(--fl-radius-sm); }
.fl-address-form .select2-container--default .select2-selection--single .select2-selection__rendered,
.fl-account-form .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 48px; padding-left: 16px; font-size: 15px; }
.fl-address-form .select2-container--default .select2-selection--single .select2-selection__arrow,
.fl-account-form .select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; }

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; color-adjust: exact !important; }
    html, body { width: 100% !important; height: auto !important; margin: 0 !important; padding: 0 !important; background: white !important; overflow: visible !important; font-size: 11pt !important; }
    .fl-order-topbar, .fl-order-bottom-actions, .fl-order-journey, .fl-print-btn, .fl-back-link, .woocommerce-MyAccount-navigation, .fl-mobile-menu-toggle, .fl-mobile-logout, header, footer, nav, aside, .site-header, .site-footer, .header-main, .footer-main, #masthead, #colophon, #wpadminbar, .admin-bar, .sc_layouts_row, .sc_layouts_row_type_narrow, .sc_layouts_row_type_normal, .menu_mobile_overlay, .trx_addons_scroll_to_top, .page_content_wrap > .content_wrap > .content > .sc_layouts_row, .top_panel, .vc_row, .wpb_row, [class*="elementor-location-"], .elementor-location-header, .elementor-location-footer { display: none !important; height: 0 !important; overflow: hidden !important; }
    .fl-view-order, .woocommerce-MyAccount-content, .content_wrap, .page_content_wrap, .content, main, article { max-width: 100% !important; width: 100% !important; margin: 0 !important; padding: 0 !important; float: none !important; }
    .fl-invoice { box-shadow: none !important; border: none !important; border-radius: 0 !important; }
    .fl-invoice-header { background: #fef7ed !important; page-break-inside: avoid !important; }
    .fl-invoice-meta { background: #f9fafb !important; page-break-inside: avoid !important; }
    .fl-invoice-addresses { display: grid !important; grid-template-columns: 1fr 1fr !important; page-break-inside: avoid !important; }
    .fl-address-box { background: #f9fafb !important; }
    .fl-products-header { display: grid !important; grid-template-columns: 1fr 120px 60px 50px 90px !important; background: #f3f4f6 !important; }
    .fl-product-row { display: grid !important; grid-template-columns: 1fr 120px 60px 50px 90px !important; page-break-inside: avoid !important; }
    .fl-product-image { width: 50px !important; height: 50px !important; }
    .fl-invoice-footer { background: #f9fafb !important; }
    a { text-decoration: none !important; color: inherit !important; }
    @page { margin: 1cm; size: A4; }
}
