/**
 * Taxonomy Archive CSS - стилове за всички taxonomy архивни страници
 * assets/css/taxonomy-archive.css
 */

/* ========================================
   TOP PARFUMES SECTION STYLES
   ======================================== */

/* Top Parfumes Section Styles */
.top-parfumes-section {
    margin-bottom: 40px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Hide top parfumes section when filters are active */
.top-parfumes-section.hidden {
    display: none !important;
}

.top-parfumes-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--pr-primary-accent, #e91e63);
}

.top-parfumes-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.top-parfume-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

.top-parfume-item:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Ensure details wrapper takes full width */
.top-parfume-item > .top-parfume-details-wrapper {
    flex: 1 1 100%;
    order: 10;
}

.top-parfume-position {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pr-primary-accent, #e91e63);
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 50%;
}

.top-parfume-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
}

.top-parfume-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-parfume-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.8rem;
}

.top-parfume-content {
    flex: 1;
    min-width: 0;
}

.top-parfume-title {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.top-parfume-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.top-parfume-title a:hover {
    color: var(--pr-primary-accent, #e91e63);
}

.top-parfume-brand {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
}

.top-parfume-brand a {
    color: var(--pr-primary-accent, #e91e63);
    text-decoration: none;
    transition: color 0.2s ease;
}

.top-parfume-brand a:hover {
    color: #c2185b;
    text-decoration: underline;
}

.top-parfume-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-parfume-rating .star-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Brand and rating on same line for desktop */
.top-parfume-brand-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.top-parfume-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    min-width: 120px;
}

.top-parfume-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--pr-primary-accent, #e91e63);
    text-align: center;
    display: block;
    width: 100%;
}

.top-parfume-buy-button {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.top-parfume-buy-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    text-align: center;
    white-space: nowrap;
}

.top-parfume-buy-link {
    display: inline-block;
    padding: 0;
    background: transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
    line-height: 1;
}

.top-parfume-buy-link:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

.top-parfume-store-logo {
    max-height: 40px;
    max-width: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Details Toggle Section */
.top-parfume-details-wrapper {
    width: 100%;
    margin-top: 0x;
    padding-top: 0px;
}

.top-parfume-details-toggle {
    width: 100%;
    padding: 10px 15px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
}

.top-parfume-details-toggle:hover {
    background: #e8e8e8;
    border-color: var(--pr-primary-accent, #e91e63);
}

.top-parfume-details-toggle.active {
    background: var(--pr-primary-accent, #e91e63);
    color: #fff;
    border-color: var(--pr-primary-accent, #e91e63);
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.top-parfume-details-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.top-parfume-details-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 15px;
}

.top-parfume-details-content.active {
    max-height: 2000px;
    padding: 15px;
}

.top-parfume-review-section {
    margin-bottom: 20px;
}

.top-parfume-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--pr-primary-accent, #e91e63);
}

.top-parfume-review {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    line-height: 1.6;
    color: #555;
}

.top-parfume-review p {
    margin: 0 0 12px 0;
}

.top-parfume-review p:last-child {
    margin-bottom: 0;
}


.top-parfume-detail-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.top-parfume-detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.top-parfume-detail-value {
    color: #555;
    line-height: 1.6;
    margin-top: 8px;
}

.top-parfume-pros-cons {
    margin-top: 8px;
}

.top-parfume-pros,
.top-parfume-cons {
    margin-bottom: 15px;
}

.top-parfume-pros:last-child,
.top-parfume-cons:last-child {
    margin-bottom: 0;
}

.top-parfume-pros strong {
    color: #4caf50;
    display: block;
    margin-bottom: 12px;
    font-size: 1rem;
}

.top-parfume-cons strong {
    color: #f44336;
    display: block;
    margin-bottom: 12px;
    font-size: 1rem;
}

/* Pros list with checkmark */
.top-parfume-pros-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.top-parfume-pros-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 8px;
    line-height: 1.6;
    color: #333;
}

.top-parfume-pros-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #4caf50;
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.5;
}

.top-parfume-pros-list li:last-child {
    margin-bottom: 0;
}

/* Cons list with X */
.top-parfume-cons-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.top-parfume-cons-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 8px;
    line-height: 1.6;
    color: #333;
}

.top-parfume-cons-list li:before {
    content: '✗';
    position: absolute;
    left: 0;
    top: 0;
    color: #f44336;
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.5;
}

.top-parfume-cons-list li:last-child {
    margin-bottom: 0;
}

.top-parfume-pyramid {
    margin-top: 8px;
}

.pyramid-level {
    margin-bottom: 12px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 3px solid var(--pr-primary-accent, #e91e63);
}

.pyramid-level:last-child {
    margin-bottom: 0;
}

.pyramid-level strong {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-size: 0.9rem;
}

.pyramid-level div {
    color: #555;
    line-height: 1.5;
}

/* ========================================
   ОСНОВНИ СТИЛОВЕ ЗА TAXONOMY ARCHIVE
   ======================================== */

/* Body class styles for archive pages */
.parfume-archive-page,
.archive-parfume,
.parfume-archive {
    background: #f8f9fa;
    min-height: 100vh;
}

/* Archive header styles for all body classes */
.parfume-archive-page .archive-header,
.archive-parfume .archive-header,
.parfume-archive .archive-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
    margin: 0;
    border-radius: 0;
}

/* Archive title styles for all body classes */
.parfume-archive-page .archive-title,
.archive-parfume .archive-title,
.parfume-archive .archive-title {
	color:#fff;
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Archive description styles for all body classes */
.parfume-archive-page .archive-description,
.archive-parfume .archive-description,
.parfume-archive .archive-description {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Container styles for all body classes */
.parfume-archive-page .container,
.archive-parfume .container,
.parfume-archive .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   ARCHIVE META STYLES
   ======================================== */

.archive-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.perfume-count {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    border: 1px solid rgba(255,255,255,0.3);
}

.note-category {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    border: 1px solid rgba(255,255,255,0.3);
}

/* ========================================
   ARCHIVE LAYOUT STYLES
   ======================================== */

/* Archive layout styles for all body classes */
.parfume-archive-page .archive-layout.has-sidebar,
.archive-parfume .archive-layout.has-sidebar,
.parfume-archive .archive-layout.has-sidebar {
    display: flex;
    gap: 10px;
}

/* Archive layout without sidebar - full width for taxonomy pages */
.parfume-archive-page .archive-layout:not(.has-sidebar),
.archive-parfume .archive-layout:not(.has-sidebar),
.parfume-archive .archive-layout:not(.has-sidebar) {
    display: block;
}

.parfume-archive-page .archive-layout.full-width .archive-main,
.archive-parfume .archive-layout.full-width .archive-main,
.parfume-archive .archive-layout.full-width .archive-main {
    width: 100%;
}

.parfume-archive-page .archive-sidebar,
.archive-parfume .archive-sidebar,
.parfume-archive .archive-sidebar {
    flex: 0 0 280px;
}

/* Archive main - full width for taxonomy pages (no sidebar) */
.parfume-archive-page .archive-main,
.archive-parfume .archive-main,
.parfume-archive .archive-main {
    width: 100%;
    flex: 1 1 100%;
}

.archive-main {
    flex: 1;
}

/* ========================================
   GRID STYLES
   ======================================== */

/* Grid styles for all body classes */
.parfume-archive-page .parfume-grid,
.archive-parfume .parfume-grid,
.parfume-archive .parfume-grid {
    display: grid;
    gap: 25px;
    margin-bottom: 40px;
}

.parfume-archive-page .parfume-grid[data-columns="2"],
.archive-parfume .parfume-grid[data-columns="2"],
.parfume-archive .parfume-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.parfume-archive-page .parfume-grid[data-columns="3"],
.archive-parfume .parfume-grid[data-columns="3"],
.parfume-archive .parfume-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.parfume-archive-page .parfume-grid[data-columns="4"],
.archive-parfume .parfume-grid[data-columns="4"],
.parfume-archive .parfume-grid[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

.parfume-archive-page .parfume-grid[data-columns="5"],
.archive-parfume .parfume-grid[data-columns="5"],
.parfume-archive .parfume-grid[data-columns="5"] {
    grid-template-columns: repeat(5, 1fr);
}

/* Card styles for all body classes */
.parfume-archive-page .parfume-card,
.archive-parfume .parfume-card,
.parfume-archive .parfume-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.parfume-archive-page .parfume-card:hover,
.archive-parfume .parfume-card:hover,
.parfume-archive .parfume-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #0073aa;
}

/* Thumbnail styles for all body classes */
.parfume-archive-page .parfume-thumbnail,
.archive-parfume .parfume-thumbnail,
.parfume-archive .parfume-thumbnail {
    height: 200px;
    overflow: hidden;
}

.parfume-archive-page .parfume-thumbnail img,
.archive-parfume .parfume-thumbnail img,
.parfume-archive .parfume-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content styles for all body classes */
.parfume-archive-page .parfume-content,
.archive-parfume .parfume-content,
.parfume-archive .parfume-content {
    padding: 20px;
}

.parfume-archive-page .parfume-title,
.archive-parfume .parfume-title,
.parfume-archive .parfume-title {
    margin: 0 0 10px;
    font-size: 1.1em;
}

.parfume-archive-page .parfume-title a,
.archive-parfume .parfume-title a,
.parfume-archive .parfume-title a {
    text-decoration: none;
    color: #333;
}

.parfume-archive-page .parfume-title a:hover,
.archive-parfume .parfume-title a:hover,
.parfume-archive .parfume-title a:hover {
    color: #0073aa;
}

.parfume-brand {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.parfume-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.rating-stars {
    color: #ffc107;
}

.rating-number {
    font-weight: bold;
    color: #333;
    font-size: 0.9em;
}

.parfume-price {
    margin-bottom: 15px;
    padding: 8px 12px;
    background: #e8f5e8;
    border-radius: 4px;
    border-left: 3px solid #4CAF50;
}

.price-label {
    font-size: 0.9em;
    color: #666;
    margin-right: 5px;
}

.price-value {
    font-weight: bold;
    color: #2e7d32;
    font-size: 1.1em;
}

.shipping {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    color: #666;
}

.no-perfumes {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.2em;
}

/* ========================================
   GENDER DESCRIPTION 2 SECTION
   ======================================== */

.gender-description-2-section {
    background: #f8f9fa;
    padding: 60px 0;
    margin-top: 40px;
}

.description-2-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.description-2-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    position: relative;
}

.description-2-content h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.description-2-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: left;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #667eea;
}

.description-2-text h1,
.description-2-text h2,
.description-2-text h3,
.description-2-text h4,
.description-2-text h5,
.description-2-text h6 {
    color: #333;
    margin-top: 25px;
    margin-bottom: 15px;
}

.description-2-text h1:first-child,
.description-2-text h2:first-child,
.description-2-text h3:first-child {
    margin-top: 0;
}

.description-2-text p {
    margin-bottom: 15px;
}

.description-2-text ul,
.description-2-text ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.description-2-text li {
    margin-bottom: 8px;
}

.description-2-text strong {
    color: #333;
    font-weight: 600;
}

.description-2-text em {
    font-style: italic;
    color: #666;
}

/* ========================================
   MOBILE FILTER TOGGLE
   ======================================== */

.mobile-filter-toggle {
    display: none !important; /* Always hidden on desktop by default */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: linear-gradient(135deg, var(--pr-secondary-accent, #764ba2) 0%, var(--pr-primary-accent, #667eea) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 20px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.mobile-filter-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, var(--pr-primary-accent, #667eea) 0%, var(--pr-secondary-accent, #764ba2) 100%);
}

.mobile-filter-toggle:active {
    transform: translateY(0);
}

.mobile-filter-toggle svg {
    flex-shrink: 0;
}

.mobile-filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-filter-overlay.active {
    display: block;
    opacity: 1;
}

/* Prevent body scroll when sidebar is open */
body.sidebar-open {
    overflow: hidden;
}

/* Close button - hidden on desktop by default */
.archive-sidebar-close {
    display: none;
}

/* Show close button only when sidebar is active on mobile */
@media (max-width: 768px) {
    .archive-sidebar.active ~ .archive-sidebar-close,
    .archive-sidebar.active .archive-sidebar-close {
        display: flex;
    }
}

/* Mobile sidebar styles */
@media (max-width: 768px) {
    .mobile-filter-toggle {
        display: flex !important; /* Only show on mobile devices */
    }
    
    /* Apply fixed positioning to all sidebars on mobile */
    .archive-sidebar,
    .homepage-sidebar {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 85% !important;
        max-width: 400px !important;
        height: 100vh !important;
        background: white !important;
        z-index: 1001 !important;
        transition: right 0.3s ease !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1) !important;
        padding: 20px 20px 0px 20px !important;
        /* Remove conflicting flex styles */
        flex: none !important;
        margin-bottom: 0 !important;
        /* Подобрен скролбар за мобилна версия */
        scrollbar-width: thin;
        scrollbar-color: #c1c1c1 #f1f1f1;
    }
    
    /* Hide homepage-sidebar from layout on mobile when not active - it will be shown as fixed overlay when active */
    .homepage-container .homepage-layout .homepage-sidebar:not(.active) {
        /* Completely remove from layout */
        display: none !important;
        /* Also ensure it's off-screen */
        right: -100% !important;
        pointer-events: none !important;
    }
    
    /* Show sidebar when active */
    .archive-sidebar.active,
    .homepage-sidebar.active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        right: 0 !important;
        width: 85% !important;
        height: 100vh !important;
    }
    
    /* Webkit скролбар стилове за по-видим скролбар */
    .archive-sidebar::-webkit-scrollbar,
    .homepage-sidebar::-webkit-scrollbar {
        width: 8px;
    }
    
    .archive-sidebar::-webkit-scrollbar-track,
    .homepage-sidebar::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }
    
    .archive-sidebar::-webkit-scrollbar-thumb,
    .homepage-sidebar::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 4px;
        border: 2px solid #f1f1f1;
    }
    
    .archive-sidebar::-webkit-scrollbar-thumb:hover,
    .homepage-sidebar::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }
    
    .archive-sidebar.active,
    .homepage-sidebar.active {
        right: 0 !important;
    }
    
    /* Close button for mobile sidebar - ONLY visible on mobile when sidebar is active */
    .archive-sidebar-close {
        display: none; /* Hidden by default */
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 5px;
        left: 10px;
        width: 36px;
        height: 36px;
        background: #f5f5f5;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        z-index: 1003;
        padding: 0;
        transition: all 0.2s ease;
    }
    
    /* Show close button only when sidebar is active */
    .archive-sidebar.active .archive-sidebar-close,
    .homepage-sidebar.active .archive-sidebar-close {
        display: flex;
    }
    
    .archive-sidebar-close:hover {
        background: #e0e0e0;
        transform: scale(1.1);
    }
    
    .archive-sidebar-close:active {
        transform: scale(0.95);
    }
    
    .archive-sidebar-close svg {
        width: 20px;
        height: 20px;
        color: #333;
    }
    
    /* Top Parfumes Mobile Styles */
    .top-parfumes-section {
        padding: 15px;
        margin-bottom: 30px;
    }
    
    .top-parfumes-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .top-parfume-item {
        flex-direction: column;
        gap: 0;
        padding: 0;
        position: relative;
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    /* Position badge - top left corner */
    .top-parfume-position {
        position: absolute;
        top: 12px;
        left: 12px;
        width: 36px;
        height: 36px;
        font-size: 1rem;
        z-index: 3;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    }
    
    /* Image section - full width header */
    .top-parfume-image {
        width: 100%;
        height: 180px;
        margin: 0;
        order: 1;
        border-radius: 0;
        background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    }
    
    .top-parfume-image img {
        object-fit: contain;
        padding: 15px;
    }
    
    /* Content wrapper - padding for content */
    .top-parfume-content {
        flex: 1 1 100%;
        order: 2;
        width: 100%;
        padding: 15px;
        padding-top: 12px;
    }
    
    /* Title - better spacing, no padding for badge */
    .top-parfume-title {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 10px;
        padding-right: 0;
        font-weight: 600;
    }
    
    .top-parfume-title a {
        color: #1a1a1a;
    }
    
    /* Brand and Rating - horizontal on mobile */
    .top-parfume-brand-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        margin-bottom: 12px;
        flex-wrap: wrap;
    }
    
    .top-parfume-brand {
        font-size: 0.85rem;
        margin-bottom: 0;
    }
    
    .top-parfume-rating {
        font-size: 0.85rem;
    }
    
    /* Actions - full width, better layout */
    .top-parfume-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        order: 3;
        margin-top: 0;
        padding: 0 15px 15px;
    }
    
    /* Price and Buy button - side by side */
    .top-parfume-price {
        width: 100%;
        text-align: center;
        font-size: 1.4rem;
        font-weight: 700;
        padding: 12px;
        background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
        border-radius: 8px;
        order: 1;
        margin-bottom: 0;
    }
    
    /* Buy button - full width, prominent */
    .top-parfume-buy-button {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px;
        background: var(--pr-primary-accent, #e91e63);
        border: none;
        border-radius: 8px;
        order: 2;
        transition: all 0.3s ease;
    }
    
    .top-parfume-buy-button:hover {
        background: #c2185b;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
    }
    
    .top-parfume-buy-text {
        font-size: 0.9rem;
        font-weight: 600;
        color: #fff;
        margin: 0;
    }
    
    .top-parfume-buy-link {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .top-parfume-store-logo {
        max-height: 32px;
        max-width: 90px;
        width: auto;
        height: auto;
        filter: brightness(0) invert(1);
    }
    
    /* Details toggle - full width, better styling */
    .top-parfume-details-wrapper {
        margin-top: 0;
        border-top: 1px solid #e8e8e8;
    }
    
    .top-parfume-details-toggle {
        font-size: 0.9rem;
        padding: 14px 15px;
        width: 100%;
        border-radius: 0;
        background: #f8f8f8;
        border: none;
        border-top: 1px solid #e8e8e8;
    }
    
    .top-parfume-details-content.active {
        padding: 15px;
    }
    
    .top-parfume-review {
        padding: 12px;
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .top-parfume-section-title {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .top-parfume-detail-item {
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .top-parfume-pros-list li,
    .top-parfume-cons-list li {
        padding-left: 24px;
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .top-parfume-pros-list li:before,
    .top-parfume-cons-list li:before {
        font-size: 1rem;
    }
    
    .top-parfume-pros strong,
    .top-parfume-cons strong {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    /* Add padding to top of filters to make room for close button */
    .archive-sidebar .parfume-filters,
    .homepage-sidebar .parfume-filters-wrapper {
        padding-top: 10px;
    }
    
    .archive-sidebar .parfume-filters,
    .homepage-sidebar .parfume-filters-wrapper {
        margin: 0;
        border: none;
        box-shadow: none;
        background: transparent;
    }
    
    .archive-sidebar .filter-group {
        margin-bottom: 0px;
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 0px;
    }
    
    .archive-sidebar .filter-title {
        font-size: 18px;
        font-weight: 700;
        color: #333;
        margin-bottom: 0px;
    }
    
    .archive-sidebar .filter-options {
        max-height: none;
        overflow: visible;
    }
    
    .archive-sidebar .filter-option {
        font-size: 16px;
        margin-bottom: 0px;
    }
    
    /* Filter preview at top of sidebar on mobile */
    .archive-sidebar .filter-preview {
        position: sticky;
        top: 0;
        z-index: 1002;
        background: linear-gradient(135deg, #f8fafb 0%, #f1f3f4 100%);
        margin-top: 0;
        margin-bottom: 15px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        padding: 12px 16px;
        border-radius: 10px;
    }
    
    .archive-sidebar .filter-submit {
        position: sticky;
        bottom: 0;
        background: white;
        padding: 0px 0;
        border-top: 1px solid #e9ecef;
        margin-top: 10px;
    }
    
    .archive-sidebar .filter-button,
    .archive-sidebar .reset-button {
        width: 100%;
        padding: 10px;
        font-size: 16px;
        margin-bottom: 5px;
    }
}


/* ========================================
   TERM DESCRIPTION READ MORE STYLES
   ======================================== */

.term-description-wrapper {
    position: relative;
}

.term-description-short {
    display: inline;
}

.term-description-full {
    margin-top: 10px;
}

.term-description-full p {
    margin-bottom: 15px;
}

.term-description-read-more {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 12px;
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    vertical-align: baseline;
}

.term-description-read-more:hover {
    background: #4CAF50;
    color: white;
}

.term-description-read-more:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .parfume-archive .archive-main {
        padding: 0px !important; /* Премахваме padding за мобилна версия */
    }
    
    .parfume-archive .archive-title {
        font-size: 2rem;
    }
    
    .archive-layout.has-sidebar {
        flex-direction: column;
        gap: 10px;
    }
    
    .archive-sidebar {
        flex: 0 0 auto;
    }
    
    .parfume-grid[data-columns="3"] {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .archive-meta {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .top-parfume-image {
        height: 160px;
    }
    
    .top-parfume-content {
        padding: 12px;
    }
    
    .top-parfume-title {
        font-size: 0.95rem;
    }
    
    .top-parfume-price {
        font-size: 1.2rem;
        padding: 10px;
        text-align: center;
    }
    
    .top-parfume-buy-button {
        padding: 10px;
    }
    
    .top-parfume-buy-text {
        font-size: 0.85rem;
    }
    
    .top-parfume-store-logo {
        max-height: 28px;
        max-width: 80px;
    }
    
    .top-parfume-position {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        top: 10px;
        left: 10px;
    }
    
    .parfume-archive .archive-title {
        font-size: 1.5rem;
    }
    
    .parfume-grid[data-columns="3"] {
        grid-template-columns: 1fr;
    }
    
    .parfume-archive .container {
        padding: 0 15px;
    }
}

    .gender-description-2-section {
        padding: 40px 0;
    }
    
    .description-2-content h2 {
        font-size: 1.8rem;
    }
    
    .description-2-text {
        padding: 25px;
        font-size: 1rem;
    }
}
