:root {
    --primary: #f26522;
    --primary-dark: #d4540f;
    --primary-light: #ff7a3d;
    --secondary: #1e293b;
    --accent: #00a0e3;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --background: #f8f9fa;
    --surface: #ffffff;
    --surface-elevated: #ffffff;
    --text: #1a1a1a;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --container-width: 1400px;
    --header-height: 70px;
	--porto-deschis: #fdeee7;
	--negru: #000000;
	--alb: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100%;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

.header {
    background: var(--surface);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-top {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 16px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo:hover {
    color: var(--primary-dark);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.search-wrapper {
    flex: 1;
    max-width: 700px;
    position: relative;
}

.search-mobile {
    display: none;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 15px;
    background: var(--background);
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.1);
}

.search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.2s;
}

.search-btn:hover {
    background: var(--primary-dark);
}

.search-btn svg {
	margin: 0 5px -4px 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: color 0.2s;
}

.header-action:hover {
    color: var(--primary);
}

.header-action svg {
    width: 24px;
    height: 24px;
}

.main {
    min-height: calc(100vh - 300px);
    /* padding: 32px 0; */
}

.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #0f172a 100%);
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-bottom: 5px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,<svg width='60' height='60' viewBox='0 0 60 60' xmlns='https://www.w3.org/TR/SVG2/'><g fill='none' fill-rule='evenodd'><g fill='%23ffffff' fill-opacity='0.03'><path d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/></g></g></svg>");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 20px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Slider */
.hero-slider {
    width: 100%;
    height: 400px;
    margin-bottom: 5px;
    position: relative;
}

.hero-slider .hero-slide {
    position: relative;
    width: 100%;
    height: 400px;
}

.hero-slider .hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slider .hero-slide-content {
    position: absolute;
    bottom: 5em;
    left: 42%;
    transform: translateX(-38%);
    text-align: center;
    z-index: 2;
}

.hero-slider .hero-slide-content h2 {
    font-size: 36px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    margin-bottom: 16px;
}

.hero-slider .btn-hero {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 9px;
    font-weight: bold;
    font-size: 16px;
    transition: background 0.2s;
    margin-top: 3%;
}

.hero-slider .btn-hero:hover {
    background: var(--primary-dark);
}

.hero-slider .swiper-pagination {
    bottom: 20px;
}

.hero-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: white;
    opacity: 0.6;
}

.hero-slider .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--primary);
}

@media (max-width: 768px) {
    .hero-slider {
        height: 250px;
    }
    .hero-slider .hero-slide {
        height: 250px;
    }
    .hero-slider .hero-slide-content {
        bottom: 15%;
		position: absolute;
		left: 5%;
		transform: translateX(-3%);
		text-align: center;
		z-index: 2;
    }
    .hero-slider .btn-hero {
        padding: 10px 24px;
        font-size: 14px;
		margin-top: 15px;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .hero-slider {
        height: 180px;
    }
    .hero-slider .hero-slide {
        height: 180px;
    }
    .hero-slider .hero-slide-content {
        bottom: 10%;
		left: 50%;
		transform: translateX(-50%);
		width: 90%;
    }
    .hero-slider .btn-hero {
        padding: 8px 20px;
        font-size: 14px;
		margin-top: 8px;
    }
}

.section {
    margin-bottom: 10px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text);
}

.section-view-all {
    font-size: 14px;
    font-weight: 400;
    color: #000;
    text-decoration: none;
    padding: 4px 8px;
    border: 1px solid var(--negru);
    border-radius: 6px;
    transition: all 0.2s;
	margin-bottom: 10px;
}

.section-view-all span {
    font-weight: bold;
	font-size: 18px;
}

.section-view-all:hover {
    background: var(--negru);
    color: white;
}

.section-link {
    font-size: 14px;
    font-weight: bold;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-link:hover {
    color: var(--primary-dark);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 16px;
}

.category-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.category-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.category-card h3 {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 4px;
    color: var(--text);
}

.category-card span {
    font-size: 12px;
    color: var(--text-secondary);
}

body > main > div > div.pagination {
	margin: 30px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

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

@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    
    .products-grid > * {
        min-width: 0;
    }
    
    .pagination {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 10px 0;
        width: 100%;
        box-sizing: border-box;
        word-break: break-word;
    }
    
    .pagination a,
    .pagination span {
        min-width: 32px;
        height: 28px;
        padding: 0 8px;
        font-size: 12px;
        flex-shrink: 0;
        box-sizing: border-box;
        word-break: break-word;
    }
    
    .page-header {
		display: flex;
		margin-bottom: 10px;
		flex-direction: column !important;
		align-items: center;
		gap: 0 !important;
    }
	
	.page-header h1 {
		text-align: center !important;
    }
	
	.sort-bar {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 0;
		margin-bottom: 20px;
		padding: 0;
		background: #f9fafb;
		border-radius: 8px;
		flex-direction: column-reverse;
	}
	
	.widget-title {
		text-align: center;
	}
    
    .main {
        overflow-x: hidden;
    }
}

.product-card {
    background: var(--surface);
    border: 4px solid var(--porto-deschis);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
}

.product-card-image img {
    transition: transform 0.3s;
	position: absolute;
    height: auto;
    top: 0;
    min-height:100%;
    min-width:100%;
    width:auto;
}

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

.product-card-no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 14px;
}

.product-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--danger);
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.product-card-content {
    padding: 16px;
    background: var(--porto-deschis);
    flex: 1;
    display: flex;
    flex-direction: column;
	justify-content: flex-end;
}

.product-card-brand {
    font-size: 12px;
    font-weight: bold;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
	min-height: 19px;
}

.product-card h3 {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
	min-height: 42px;
}

.product-card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.product-card-rating-stars {
    display: flex;
    gap: 2px;
    color: #fbbf24;
}

.product-card-rating-stars svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.product-card-rating-count {
    font-size: 12px;
    color: var(--text-secondary);
}

.product-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    /* padding-top: 12px; */
    border-top: 1px solid var(--border-light);
}

.product-card-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-card-price-current {
    font-size: 22px;
    font-weight: bold;
    color: #f26522;
}

.product-card-price-current sup {
    font-size: 14px;
    font-weight: bold;
    vertical-align: super;
    line-height: 1;
}

.price-currency {
    font-size: 18px;
    font-weight: bold;
    color: #f26522;
    /* margin-left: 2px; */
}

.price-currency-old {
    font-size: 14px;
    font-weight: normal;
    color: var(--text-secondary);
    margin-left: 4px;
}

.product-card-price-old {
    font-size: 14px;
    color: var(--secondary);
    text-decoration: line-through;
    font-weight: bold;
}

.product-card-price-old .price-old-value {
    color: var(--text-secondary);
    text-decoration: line-through;
    font-weight: bold;
}

.product-card-price-old .price-currency-old {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: bold;
}

span.product-card-price-old > span, span.product-card-price-old > span > span {
    color: var(--secondary);
}

span.product-card-price-old > span > span {
	margin-left: 5px;
	font-size: 14px;
    font-weight: bold;
}

.product-card-offers {
    font-size: 12px;
    color: var(--success);
    font-weight: bold;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.brand-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text);
    font-weight: bold;
    transition: all 0.3s;
    min-height: 80px;
}

.brand-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.brand-card img {
    max-width: 120px;
    max-height: 50px;
    object-fit: contain;
}

.brand-card span {
    font-size: 14px;
    text-align: center;
}

.footer {
    background: var(--secondary);
    color: white;
    margin-top: 25px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    padding: 30px 0;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand .logo {
    color: white;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.6;
}

.footer-social-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex !important;
    flex-wrap: wrap;
    gap: 12px;
	flex-direction: row !important;
}

.footer-social-links li {
    margin: 0;
}

.footer-social-links a {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    font-size: 20px;
}

.footer-social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(242, 101, 34, 0.3);
}

.footer-social-links a span {
    display: none;
}

.footer-social-links a i,
.footer-social-links a svg {
    font-size: 20px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    color: white;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--alb);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

.footer-payment {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-payment span {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

.breadcrumb {
    padding: 16px 0;
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    color: var(--text);
    font-weight: 500;
}

.breadcrumb-separator {
    color: var(--text-light);
}

.page-header {
	display: flex;
    margin-bottom: 10px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

div.footer-main.footer-grid-dynamic > div > ul > li > a {
	display: block;
}

.page-header h1 {
    font-size: 32px;
    font-weight: bold;
    color: var(--text);
    letter-spacing: -0.02em;
	line-height: 120%;
}

.page-header p {
    color: var(--text-secondary);
    margin-top: 8px;
}

.product-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 48px;
}

.product-gallery {
    flex: 0 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.product-gallery .gallery-main {
    background: #f9fafb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.product-gallery .gallery-main a {
    display: block;
}

.product-gallery .gallery-main img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.product-gallery .gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.product-gallery .gallery-thumbs a {
    flex: 0 0 80px;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.product-gallery .gallery-thumbs a:hover,
.product-gallery .gallery-thumbs a.active {
    border-color: #f26522;
}

.product-gallery .gallery-thumbs img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

.product-info-wrapper {
    flex: 1;
    min-width: calc(50% - 20px);
}

.product-info {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 24px;
}

.product-info-main {
    flex: 1;
    min-width: 0;
}

.product-price-card-desktop {
    max-width: 300px;
    flex-shrink: 0;
    flex-direction: column;
    display: flex;
    gap: 0;
}

.product-price-card-mobile {
    display: none;
}

.price-action-column {
    margin-top: 4px;
}

.btn-vezi-oferta {
    display: inline-block;
    padding: 12px 24px;
    background: #f26522;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
    white-space: nowrap;
	margin-top: 10px;
}

.btn-vezi-oferta:hover {
    background: #d4540f;
	color: var(--alb);
}

@media (max-width: 900px) {
    .product-gallery,
    .product-info-wrapper {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .product-info {
        flex-direction: column;
    }
    
    .product-price-card-desktop {
        display: none;
    }
    
    .product-price-card-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        padding: 16px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    
    .price-info-column {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .price-action-column {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .product-detail {
        flex-direction: column;
    }
    
    .product-gallery {
        flex: 100%;
        max-width: 100%;
        position: static;
    }
    
    .product-gallery .gallery-thumbs a {
        flex: 0 0 60px;
    }
    
    .product-gallery .gallery-thumbs img {
        height: 60px;
    }
}

.product-gallery-main {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 16px;
}

.product-gallery-main img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.product-gallery-thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
}

.product-gallery-thumb {
    width: 80px;
    height: 80px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius);
    padding: 8px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.product-gallery-thumb:hover,
.product-gallery-thumb.active {
    border-color: var(--primary);
}

.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info h1 {
    font-size: 28px;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 12px;
}

.product-info .brand, .product-info .categorie {
    font-size: 14px;
    color: var(--primary);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.product-info .brand a, .product-info .categorie a {
    color: var(--primary);
}

.product-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.product-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-meta-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-meta-value {
    font-size: 14px;
    font-weight: bold;
    color: var(--text);
}

.product-offers-section {
    margin-top: 32px;
}

.product-offers-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-offers-count {
    background: var(--primary);
    color: white;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
}

.offers-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.offers-table thead {
    background: #fafafa;
}

.offers-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.offers-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.offers-table tr:last-child td {
    border-bottom: none;
}

.offers-table tr:hover {
    background: #fafafa;
}

.offers-table-store {
    display: flex;
    align-items: center;
    gap: 12px;
}

.offers-table-store-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    color: var(--text-secondary);
}

.offers-table-store-name {
    font-weight: bold;
    font-size: 14px;
}

.offers-table-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.offers-table-price-current {
    font-size: 18px;
    font-weight: bold;
    color: var(--text);
}

.offers-table-price-old {
    text-decoration: line-through;
    color: var(--text-secondary);
    font-size: 13px;
}

.offers-table-stock {
    font-size: 13px;
    font-weight: 500;
}

.offers-table-stock.in-stock {
    color: var(--success);
}

.offers-table-stock.limited {
    color: var(--warning);
}

.offers-table-stock.out-of-stock {
    color: var(--danger);
}

.btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-buy:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-buy:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

.price-chart {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 32px;
}

.price-chart h2 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 16px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    flex-wrap: wrap;
}

.pagination-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    min-width: 40px;
    height: 33px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Sort Bar */
.sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    margin-bottom: 20px;
    padding: 0;
    background: #f9fafb;
    border-radius: 8px;
}

.sort-dropdown {
    position: relative;
}

.sort-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 180px;
}

.sort-dropdown-btn:hover {
    border-color: var(--primary);
}

.sort-dropdown-btn svg {
    width: 16px;
    height: 16px;
    margin-left: auto;
    transition: transform 0.2s;
}

.sort-dropdown.open .sort-dropdown-btn svg {
    transform: rotate(180deg);
}

.sort-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 100%;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s;
}

.sort-dropdown.open .sort-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sort-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.15s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.sort-dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.sort-dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

.sort-dropdown-item:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.sort-dropdown-item.active {
    background: #f26522;
    color: white;
    font-weight: 500;
}

.sort-dropdown-item.active svg {
    opacity: 1;
}

.sort-dropdown-item svg {
    opacity: 0.3;
    width: 16px;
    height: 16px;
}

.sort-bar span {
    font-weight: 500;
    color: #374151;
    margin-right: 8px;
}

.sort-bar a {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #4b5563;
    text-decoration: none;
    background: white;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.sort-bar a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.sort-bar a.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header-main {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding: 12px 0;
        gap: 12px;
    }
    
    .logo {
        font-size: 20px;
        order: 0 !important;
    }
    
    .header-actions {
        order: 2;
    }
    
    .search-wrapper {
        order: 3;
        max-width: 100%;
        width: 100%;
    }
    
    .header-main > .search-wrapper {
        display: none;
    }
    
    .search-mobile {
        display: block;
    }
    
    .search-box {
        width: 95%;
		margin: 0 10px 10px 10px;
    }
    
    .hero {
        padding: 48px 0;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    
    .category-card {
        padding: 16px 12px;
    }
    
    .category-card-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .category-card h3 {
        font-size: 12px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-card-content {
        padding: 12px;
    }
    
    .product-card-price-current {
        font-size: 36px;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .product-gallery {
        position: static;
    }
    
    .product-info h1 {
        font-size: 22px;
    }
    
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        display: grid !important;
    }
    
    .products-grid > * {
        width: 100%;
        max-width: 100%;
        flex: 0 0 50%;
    }
    
    .offers-table {
        display: block;
        overflow-x: auto;
    }
    
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.widget {
    margin: 15px 0;
}

.widget-title {
    font-size: 20px;
    font-weight: bold;
    margin: 25px 0 0 0;
    color: var(--text);
}

.widget-content {
    padding: 16px;
    /* background: var(--surface); */
    border-radius: var(--radius-lg);
}

.widget-categories {
	background: var(--porto-deschis) !important;
}

.widget-categories .categories-grid,
.widget-products .products-grid,
.widget-brands .brands-grid {
    gap: 12px;
}

.widget-categories .category-card {
    padding: 16px 12px;
}

.widget-categories .category-card-icon {
    width: 48px;
    height: 48px;
    font-size: 18px;
}

.widget-categories .category-card h3 {
    font-size: 12px;
}

.widget-categories .category-card span {
    font-size: 11px;
}

.stores-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.store-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.store-item:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.store-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.store-info {
    flex: 1;
}

.store-name {
    font-weight: bold;
    font-size: 14px;
}

.store-products {
    font-size: 12px;
    color: var(--text-secondary);
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.links-list a {
    display: block;
    padding: 8px 12px;
    background: var(--surface);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    transition: all 0.2s;
}

.links-list a:hover {
    background: var(--primary);
    color: white;
    transform: translateX(4px);
}

.search-widget-form {
    display: flex;
    gap: 8px;
}

.search-widget-form .search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
}

.search-widget-form .search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-widget-form .search-btn {
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: bold;
    cursor: pointer;
}

.search-widget-form .search-btn:hover {
    background: var(--primary-dark);
}

.widget-newsletter {
    background: linear-gradient(135deg, var(--secondary), #0f172a);
    color: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.widget-newsletter .widget-title {
    color: white;
}

.widget-newsletter p {
    opacity: 0.9;
    margin-bottom: 16px;
    font-size: 14px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
}

.newsletter-btn {
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background: var(--primary-dark);
}

.widget-banner {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.widget-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-custom-html {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.widget-image {
    text-align: center;
}

.widget-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.widget-search {
    padding: 16px;
    background: var(--surface);
    border-radius: var(--radius-lg);
}

.widget-links {
    padding: 16px;
    background: var(--surface);
    border-radius: var(--radius-lg);
}

.widget-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-links li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.widget-links li:last-child {
    border-bottom: none;
}

.widget-links a {
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.widget-links a:hover {
    color: var(--primary);
}

.widget-links a::before {
    content: "›";
    color: var(--primary);
    font-weight: bold;
}

/* Price Drop Badges */
.price-drop-badge,
.price-drop-card,
.price-drop-list,
.price-drop-detail {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.2;
    white-space: nowrap;
    animation: priceDropPulse 2s ease-in-out infinite;
}

@keyframes priceDropPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.price-drop-badge svg,
.price-drop-card svg,
.price-drop-list svg,
.price-drop-detail svg {
    flex-shrink: 0;
}

/* Card position (product cards on homepage/category) */
.price-drop-card {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    font-size: 11px;
    padding: 3px 8px;
}

/* List position (offer list on product page) */
.price-drop-list {
    margin-left: 8px;
    font-size: 13px;
    padding: 5px 12px;
}

/* Detail position (price section on product page) */
.price-drop-detail {
    margin-left: 12px;
    font-size: 14px;
    padding: 6px 14px;
}

/* Price drop in product card */
.product-card {
    position: relative;
}

.product-card .price-drop-card {
    top: 8px;
    left: 8px;
}

/* Price section with drop */
.product-price-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.old-price {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 14px;
}

.new-price {
    color: #ef4444;
    font-weight: bold;
    font-size: 18px;
}

/* Lightbox Gallery */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    padding: 10px;
    line-height: 1;
}

.lightbox-close:hover {
    color: #f26522;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 30px;
    padding: 20px 15px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    color: white;
    margin-top: 20px;
    font-size: 16px;
}

/* Product Gallery - Simple Gallery Style */
.product-gallery {
    flex: 0 0 45%;
    max-width: 45%;
}

.product-gallery .gallery-main {
    position: relative;
    background: #f9fafb;
    border-radius: 8px;
    overflow: hidden;
}

.product-gallery .gallery-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.product-gallery #mainProductImage {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s;
}

.product-gallery #mainProductImage:hover {
    transform: scale(1.05);
}

.product-gallery .gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.2s;
    z-index: 10;
}

.product-gallery .gallery-nav:hover {
    background: #f26522;
    color: white;
}

.product-gallery .gallery-prev {
    left: 10px;
}

.product-gallery .gallery-next {
    right: 10px;
}

.product-gallery .gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

.product-gallery .gallery-thumbs::-webkit-scrollbar {
    height: 6px;
}

.product-gallery .gallery-thumbs::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.product-gallery .gallery-thumbs::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.product-gallery .gallery-thumb {
    flex: 0 0 70px;
    height: 70px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s;
}

.product-gallery .gallery-thumb:hover {
    opacity: 1;
}

.product-gallery .gallery-thumb.active {
    opacity: 1;
    border-color: #f26522;
}

.product-gallery .gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.image-modal .modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.image-modal .modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.image-modal .modal-close:hover {
    color: #f26522;
}

.image-modal .modal-prev,
.image-modal .modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    padding: 16px;
    user-select: none;
    z-index: 10000;
}

.image-modal .modal-prev {
    left: 20px;
}

.image-modal .modal-next {
    right: 20px;
}

.image-modal .modal-prev:hover,
.image-modal .modal-next:hover {
    color: #f26522;
}

@media (max-width: 768px) {
    .product-gallery {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .product-gallery .gallery-image-wrapper {
        min-height: 300px;
    }
    
    .product-gallery #mainProductImage {
        max-height: 300px;
    }
    
    .product-gallery .gallery-thumb {
        flex: 0 0 60px;
        height: 60px;
    }
    
    .product-gallery .gallery-nav {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .image-modal .modal-prev,
    .image-modal .modal-next {
        font-size: 30px;
        padding: 10px;
    }
    
    .image-modal .modal-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

/* eMAG-style Product Price Card */
.product-price-card {
    background: var(--porto-deschis);
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    max-width: 420px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.product-price-card .price-main {
    display: flex;
    align-items: baseline;
    gap: 0;
    flex-wrap: wrap;
	    flex-direction: column;
}

.product-price-card .price-label {
    font-size: 42px;
    font-weight: bold;
    color: #f26522;
    letter-spacing: -0.5px;
}

.product-price-card .price-label sup {
    font-size: 20px;
    font-weight: bold;
    vertical-align: super;
    line-height: 1;
}

.product-price-card .price-old {
    font-size: 18px;
    font-weight: bold;
    color: #757575;
    text-decoration: line-through;
}

.product-price-card .price-old sup {
    font-size: 14px;
    font-weight: bold;
    vertical-align: super;
    line-height: 1;
}

.product-price-card .price-store {
    font-size: 14px;
    color: #484848;
    font-weight: 500;
    white-space: nowrap;
}

.product-price-card .price-store span {
    color: #0f0f0f;
    font-weight: bold;
}

.price-discount-badge {
    display: inline-block;
    background: #f26522;
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.price-old-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* PhotoSwipe Custom Styles */
.pswp-gallery .thumbnail {
    display: inline-block;
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
    margin-right: 10px;
    margin-bottom: 10px;
}

.pswp-gallery .thumbnail:hover {
    border-color: #f26522;
}

.pswp-gallery .thumbnail.active {
    border-color: #f26522;
}

.pswp-gallery .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Related Products Section */
.related-products {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e5e5e5;
}

.related-products h2 {
    font-size: 24px;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 24px;
}

.related-products .products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .related-products .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .related-products .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
    gap: 20px;
}

.related-products .product-card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.related-products .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.related-products .product-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.related-products .product-card img {
    transition: transform 0.3s;
	position: absolute;
    height: auto;
    top: 0;
    min-height:100%;
    min-width:100%;
    width:auto;
}

.related-products .product-card h3 {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    padding: 0 0 5px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
	min-height: 42px;
}

.related-products .product-card .product-card-footer {
    margin-top: auto;
}

/* Price History Chart */
.price-chart {
    margin-top: 40px;
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
}

.price-chart h2 {
    font-size: 20px;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 16px;
}

/* Price History Section */
.price-history-section {
    margin-top: 20px;
    background: #f9fafb;
    border-radius: 12px;
}

.price-history-section h3 {
    font-size: 20px;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 5px;
}

.price-history-chart {
    margin-bottom: 24px;
    height: 250px;
}

/* Responsive Table */
.price-history-table {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.price-history-row {
    display: flex;
    padding: 8px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.price-history-row.header {
    background: var(--secondary);
    color: white;
    font-weight: 600;
}

.price-history-col {
    flex: 1;
    text-align: center;
}

.price-history-col.date {
    text-align: left;
    flex: 1;
}

.price-history-col.price {
    text-align: right;
    flex: 1;
    font-weight: 600;
    color: var(--primary);
}

@media (max-width: 480px) {
    .price-history-section {
        padding: 16px;
    }
    
    .price-history-chart {
        height: 200px;
    }
    
    .price-history-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .price-history-col {
        text-align: center !important;
    }
}

/* Product Description */

.product-description h3 {
    font-size: 20px;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 5px;
}

.product-description p,
.product-description div {
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
}


.product-description .description-content {
    line-height: 1.7;
    color: #475569;
}

/* Offers Section */
.offers-section {
    margin-top: 30px;
}

.offers-section h2 {
    font-size: 20px;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 16px;
}

.offers-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
}

.offers-table th,
.offers-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.offers-table th {
    background: #f8fafc;
    font-weight: bold;
    color: #64748b;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.offers-table tr:last-child td {
    border-bottom: none;
}

.offers-table .price {
    font-weight: bold;
    color: #f26522;
}

.offers-table .old-price {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 13px;
    margin-left: 8px;
}

.btn-buy {
    display: inline-block;
    padding: 8px 16px;
    background: #f26522;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
    transition: background 0.2s;
}

.btn-buy:hover {
    background: #d4540f;
}

.products-slider-section {
    padding: 20px 0 10px;
}

.products-slider-section .section-header {
    margin-bottom: 0;
}

.products-slider {
    position: relative;
}

.products-slider .swiper {
    padding: 4px 0 12px 0;
}

.products-slider .swiper-wrapper {
    display: flex;
    gap: 0px;
}

.products-slider .product-card {
    height: auto;
}

.products-slider .product-card .product-card-content h3 {
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slider-nav.swiper-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
    padding: 0 -20px;
}

.slider-nav.swiper-buttons .slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 1;
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    margin: 0;
}

.slider-btn:hover {
    background: #f26522;
    border-color: #f26522;
    color: #fff;
}

.slider-btn::after {
    font-size: 18px;
    font-weight: bold;
    color: inherit;
}

.swiper-button-prev {
    margin-left: -20px;
}

.swiper-button-next {
    margin-right: -20px;
}

@media (max-width: 768px) {
    .products-slider-section {
        padding: 20px 0;
    }
    
    .slider-nav.swiper-buttons .slider-btn {
        width: 32px;
        height: 32px;
    }
    
    .swiper-button-prev {
        margin-left: -10px;
    }
    
    .swiper-button-next {
        margin-right: -10px;
    }
}

@media (max-width: 480px) {
    .slider-wrapper .product-card {
        flex: 0 0 calc(50% - 8px);
        min-width: 140px;
    }
}

.product-gallery .fotorama {
    margin: 0 auto;
}

.product-gallery .fotorama__wrap {
    border-radius: 8px;
    overflow: hidden;
}

.product-gallery .fotorama__img {
    object-fit: contain;
}

.product-gallery .fotorama__thumb-border {
    border-color: #f26522;
}

.product-gallery .fotorama__nav--thumbs .fotorama__thumb {
    background-color: #f9fafb;
}

.product-gallery .fotorama__nav--dots .fotorama__dot {
    border-color: #94a3b8;
}

.product-gallery .fotorama__nav--dots .fotorama__dot.fotorama__active {
    background-color: #f26522;
    border-color: #f26522;
}

.product-gallery .fotorama__arr {
    background-color: rgba(255,255,255,0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.product-gallery .fotorama__arr:hover {
    background-color: #f26522;
}

.product-gallery .fotorama__arr:hover::before,
.product-gallery .fotorama__arr:hover::after {
    border-color: white;
}

@media (max-width: 767px) {
    .product-gallery {
        width: 100%;
        max-width: 100%;
    }
    
    .product-gallery .fotorama {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 16px;
    }
    
    .product-gallery .fotorama .fotorama__wrap {
        width: 100%;
        max-width: 100%;
    }
    
    .product-gallery .fotorama .fotorama__stage {
        height: 300px !important;
        width: 100% !important;
    }
    
    .product-gallery .fotorama .fotorama__img {
        max-height: 300px;
    }
    
    .product-gallery .fotorama .fotorama__nav--dots {
        margin-top: 10px;
    }
}

.slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
    padding: 0 -20px;
}

.slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: all 0.2s;
    color: var(--porto-deschis);
}

.slider-btn:hover {
    background: #f26522;
    border-color: #f26522;
    color: #fff;
}

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

.slider-prev {
    margin-left: -20px;
}

.slider-next {
    margin-right: -20px;
}

@media (max-width: 768px) {
    .slider-nav {
        display: none;
    }
}

/* Force 2 columns on all mobile devices */
@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        display: grid !important;
    }
	.product-price-card .price-main {
		display: flex;
		align-items: baseline;
		gap: 0;
		flex-wrap: wrap;
		flex-direction: column;
		align-content: flex-start;
	}
	.btn-vezi-oferta {
		margin-top: 0;
	}
	.related-products {
		margin-top: 10px;
		padding-top: 0;
	}
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        display: grid !important;
    }
}

.fotorama__arr--next {
	right: 8px !important;
    background-position: -29px 5px !important;
}

.fotorama__arr--prev {
    left: 6px !important;
    background-position: 4px 4px !important;
}

/* ============================================
   MEGA MENU STYLES
   ============================================ */

.main-nav {
    background: var(--secondary);
    padding: 0;
    position: relative;
    z-index: 100;
}

.main-nav-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: stretch;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    background: transparent;
}

.nav-link:hover,
.nav-link:focus {
    color: white;
    background: rgba(255,255,255,0.1);
}

.nav-item.active > .nav-link {
    color: white;
    background: var(--primary);
}

.nav-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(255,255,255,0.6);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.nav-link:hover .nav-arrow,
.nav-item.active > .nav-link .nav-arrow {
    border-top-color: white;
}

.nav-item.has-dropdown:hover > .nav-link .nav-arrow,
.nav-item.has-dropdown.active > .nav-link .nav-arrow {
    transform: rotate(180deg);
}

/* DESKTOP DROPDOWN - 2 COLUMNS */
.dropdown-mega {
	display: none;
    position: absolute;
    top: 100%;
    right: -65%;
    background: var(--secondary);
    width: max-content;
    max-width: 400px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    padding: 8px;
}

.nav-item.has-dropdown:hover > .dropdown-mega,
.nav-item.has-dropdown:focus-within > .dropdown-mega {
    display: block;
}

.dropdown-mega-inner {
    width: 100%;
}

.dropdown-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.dropdown-col {
    min-width: 0;
}

.dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-list li {
    margin: 0;
}

.dropdown-list a {
    display: block;
    padding: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s;
}

.dropdown-list a:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.dropdown-list li.active > a {
    background: rgba(242, 101, 34, 0.3);
    color: white;
    font-weight: 500;
}

.dropdown-empty {
    padding: 20px;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.hamburger {
    display: none;
}

/* Hide nav header and close button on desktop */
.nav-header {
    display: none;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 1180px) {
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .main-nav {
        background: transparent;
    }
    
    .main-nav-inner {
        padding: 0 16px;
        justify-content: flex-end;
    }
    
    /* Mobile menu - hidden by default on mobile */
    .nav-list {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--secondary);
        padding: 0;
        gap: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 998;
        overflow-y: auto;
        height: 100vh;
    }
    
    .nav-list.active {
        display: flex;
        transform: translateX(0);
    }
    
    /* Mobile menu header with close button */
    .nav-list .nav-header {
        display: flex;
        justify-content: flex-end;
        padding: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        position: sticky;
        top: 0;
        background: var(--secondary);
        z-index: 10;
    }
    
    .nav-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,0.1);
        border: none;
        border-radius: 8px;
        color: white;
        cursor: pointer;
        transition: background 0.2s;
    }
    
    .nav-close-btn:hover {
        background: rgba(255,255,255,0.2);
    }
    
    .nav-close-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .nav-item {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        padding: 16px 20px;
        justify-content: space-between;
        width: 100%;
        color: rgba(255,255,255,0.85);
        font-size: 16px;
        box-sizing: border-box;
    }
    
    .nav-link:hover,
    .nav-link:focus {
        background: rgba(255,255,255,0.08);
        color: white;
    }
    
    .nav-item.active > .nav-link {
        background: rgba(255,255,255,0.08);
        color: white;
    }
    
    .nav-arrow {
        border-top-color: rgba(255,255,255,0.5);
    }
    
    /* Mobile dropdown - fully visible and navigable */
    .dropdown-mega {
        display: none !important;
        position: static;
        width: 100%;
        max-width: 100%;
        background: rgba(0,0,0,0.15);
        box-shadow: none;
        padding: 0;
        border-radius: 0;
        min-width: 0;
        max-height: none;
        overflow: visible;
        visibility: hidden;
    }
    
    .nav-item.has-dropdown.active > .dropdown-mega {
        display: block !important;
        visibility: visible;
    }
    
    .dropdown-columns {
        display: flex;
        flex-direction: column;
        padding: 0 0 10px 0;
    }
    
    .dropdown-col {
        padding: 0;
    }
    
    .dropdown-col:empty,
    .dropdown-col:has(> ul:empty) {
        display: none;
    }
    
    .dropdown-list a {
        padding: 14px 20px 14px 36px;
        font-size: 15px;
        color: rgba(255,255,255,0.85);
    }
    
    .dropdown-list a:hover {
        background: rgba(255,255,255,0.08);
        color: white;
    }
    
    .dropdown-list li.active > a {
        background: rgba(242, 101, 34, 0.2);
        color: white;
    }
    
    body.menu-open {
        overflow: hidden;
    }
}

/* ============================================
   WORDPRESS THEME SPECIFIC STYLES
   ============================================ */

.site {
    max-width: 100vw;
    overflow-x: hidden;
}

.site .header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site .header .container {
    max-width: 1400px;
	padding: 0;
}

.site .header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 16px;
}

.site .logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.site .logo:hover {
    color: var(--primary-dark);
}

.site .logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.site .search-wrapper {
    flex: 1;
    max-width: 700px;
    position: relative;
}

.site .search-mobile {
    display: none;
}

.site .hamburger {
    display: none;
}

.site .main-nav {
    background: var(--secondary);
}

.site .main-nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
}

.site .main-nav-inner .container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.site .main-nav ul {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-start;
}

.site .main-nav li {
    position: relative;
}

.site .main-nav a {
    display: block;
    padding: 12px 16px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.site .main-nav a:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

.site .mobile-menu-wrapper {
    display: none;
}

/* Desktop */
@media (min-width: 1181px) {
    .site .hamburger {
        display: none;
    }
    .site .mobile-menu-wrapper {
        display: none;
    }
    .site .main-nav {
        display: block;
    }
    .site .search-wrapper {
        display: block;
    }
    .site .search-mobile {
        display: none;
    }
}

/* Mobile */
@media (max-width: 1180px) {
    .site .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 40px;
        height: 40px;
        background: var(--primary);
        border: none;
        border-radius: 8px;
        cursor: pointer;
        padding: 8px;
        flex-shrink: 0;
        order: 2;
    }
    
    .site .hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background: #fff;
        border-radius: 2px;
        transition: all 0.3s;
    }
    
    .site .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .site .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .site .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .site .main-nav {
        display: none;
    }
    
    .site .mobile-menu-wrapper {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--secondary);
        z-index: 999;
        overflow-y: auto;
        padding: 20px;
    }
    
    .site .mobile-menu-wrapper.active {
        display: block;
    }
    
    .site .mobile-menu-wrapper .mobile-nav-list,
    .site .mobile-menu-wrapper ul {
        display: flex;
        flex-direction: column;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .site .mobile-menu-wrapper .mobile-nav-list li,
    .site .mobile-menu-wrapper ul li {
        display: block;
        margin: 0;
        padding: 0;
        width: 100%;
    }
    
    .site .mobile-menu-wrapper .mobile-nav-list li a,
    .site .mobile-menu-wrapper ul li a {
        display: block;
        width: 100%;
        padding: 15px 20px;
        color: rgba(255,255,255,0.95);
        text-decoration: none;
        font-size: 16px;
        font-weight: 500;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }
    
    .site .mobile-menu-wrapper .mobile-nav-list li a:hover,
    .site .mobile-menu-wrapper ul li a:hover {
        background: rgba(255,255,255,0.15);
        color: #fff;
    }
    
    .site .search-wrapper {
        display: none;
    }
    
    .site .search-mobile {
        display: block;
        padding: 12px 0;
        background: var(--secondary);
        width: 100%;
    }
    
    .site .search-mobile .search-box {
        margin: 0 16px;
    }
    
    .site .search-mobile .search-input {
        width: 100%;
        padding: 12px 16px;
        border: 2px solid rgba(255,255,255,0.2);
        border-radius: 8px;
        font-size: 15px;
        background: rgba(255,255,255,0.1);
        color: white;
    }
    
    .site .search-mobile .search-input::placeholder {
        color: rgba(255,255,255,0.6);
    }
    
    .site .search-mobile .search-input:focus {
        outline: none;
        border-color: var(--primary);
        background: rgba(255,255,255,0.15);
    }
    
    .site .search-mobile .search-btn {
        position: absolute;
        right: 22px;
        top: 50%;
        transform: translateY(-50%);
        padding: 10px 16px;
        background: var(--primary);
        color: white;
        border: none;
        border-radius: 6px;
        font-weight: bold;
        font-size: 14px;
        cursor: pointer;
    }
    
    .site .search-mobile .search-box {
        position: relative;
    }
}

@media (max-width: 1200px) {
    .site .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .site .categories-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 900px) {
    .site .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .site .container {
        padding: 0 16px;
    }
    .site .header-main {
        flex-wrap: wrap;
        padding: 12px 0;
        gap: 12px;
    }
    .site .logo {
        font-size: 20px;
        order: 0;
    }
    .site .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .site .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .site .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .site .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   LAYOUT: CONTENT + SIDEBAR
   ============================================ */

.content-sidebar-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    padding: 32px 0;
}

.content-main {
    min-width: 0;
}

.sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar .widget {
    margin-bottom: 24px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.sidebar .widget-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    color: var(--text);
}

@media (max-width: 1024px) {
    .content-sidebar-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .sidebar {
        position: static;
    }
}

/* ============================================
   BLOG POSTS GRID
   ============================================ */

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-post {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.blog-post:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.blog-post-image {
    display: block;
    overflow: hidden;
    position: relative;
    padding-top: 60%;
}

.blog-post-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-post:hover .blog-post-image img {
    transform: scale(1.05);
}

.blog-post-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-post-category {
    display: inline-block;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    background: var(--porto-deschis);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    width: fit-content;
}

.blog-post-title {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.4;
    margin: 0 0 12px 0;
    color: var(--text);
}

.blog-post-title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-post-title a:hover {
    color: var(--primary);
}

.blog-post-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post-meta {
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.blog-post-meta time {
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 1024px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .blog-post-content {
        padding: 16px;
    }
    
    .blog-post-title {
        font-size: 16px;
    }
}

/* ============================================
   SINGLE POST
   ============================================ */

.single-post-page {
    padding: 16px 0 32px;
}

.post-full {
    max-width: 100%;
}

.post-thumbnail {
    margin-bottom: 32px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.post-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.post-header .post-title {
    margin-bottom: 12px;
}

.post-thumbnail-inline {
    float: right;
    margin: 0 0 16px 16px;
    width: 300px;
    max-width: 100%;
}

.post-thumbnail-inline img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 14px;
}

.post-meta time {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-meta .post-category {
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    background: var(--porto-deschis);
    padding: 4px 12px;
    border-radius: 4px;
}

.post-title {
    font-size: 32px;
    font-weight: bold;
    line-height: 1.3;
    color: var(--text);
    margin: 0;
    letter-spacing: -0.02em;
}

.post-content {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    font-weight: bold;
    margin: 1.2em 0 0.4em 0;
    line-height: 1.3;
    color: var(--text);
}

.post-content h1 { font-size: 32px; }
.post-content h2 { font-size: 28px; }
.post-content h3 { font-size: 24px; }
.post-content h4 { font-size: 20px; }
.post-content h5 { font-size: 18px; }
.post-content h6 { font-size: 16px; }

.post-content p {
    margin: 0 0 1em 0;
}

.post-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-content a:hover {
    color: var(--primary-dark);
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1em 0;
}

.post-content ul,
.post-content ol {
    margin: 0 0 1em 0;
    padding-left: 24px;
}

.post-content ul {
    list-style: disc;
}

.post-content ol {
    list-style: decimal;
}

.post-content li {
    margin-bottom: 4px;
}

.post-content blockquote {
    margin: 1.2em 0;
    padding: 16px 20px;
    border-left: 4px solid var(--primary);
    background: var(--porto-deschis);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

.post-content pre {
    background: var(--secondary);
    color: #e5e7eb;
    padding: 16px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1em 0;
    font-size: 14px;
    line-height: 1.6;
}

.post-content code {
    background: var(--background);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--primary);
}

.post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.post-content table th,
.post-content table td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    text-align: left;
}

.post-content table th {
    background: var(--background);
    font-weight: bold;
}

.post-content hr {
    border: none;
    border-top: 2px solid var(--border-light);
    margin: 1.2em 0;
}

.post-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.post-tags span {
    font-weight: bold;
    font-size: 14px;
    color: var(--text);
}

.post-tags .tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.post-tags .tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.post-share {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-share span {
    font-weight: bold;
    font-size: 14px;
    color: var(--text);
}

.post-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--background);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 16px;
}

.post-share a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.post-navigation {
    margin-top: 32px;
    padding: 24px 0;
    border-top: 1px solid var(--border-light);
}

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: all 0.2s;
}

.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.post-navigation .nav-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.post-navigation .nav-title {
    display: block;
    font-size: 15px;
    font-weight: bold;
    color: var(--text);
}

.post-navigation a {
    text-decoration: none;
    color: inherit;
}

@media (max-width: 768px) {
    .post-title {
        font-size: 28px;
    }
    
    .post-thumbnail-inline {
        float: none;
        margin: 0 0 16px 0;
        width: 100%;
    }
    
    .post-content {
        font-size: 16px;
    }
    
    .post-content h1 { font-size: 26px; }
    .post-content h2 { font-size: 24px; }
    .post-content h3 { font-size: 22px; }
    
    .post-navigation .nav-links {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   RELATED POSTS
   ============================================ */

.related-posts {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.related-posts .section-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 16px;
    color: var(--text);
}

.related-posts .posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-posts .post-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s;
}

.related-posts .post-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.related-posts .post-card-image {
    display: block;
    position: relative;
    padding-top: 55%;
    overflow: hidden;
}

.related-posts .post-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-posts .post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.related-posts .post-card-content {
    padding: 16px;
}

.related-posts .post-card-meta {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.related-posts .post-card-title {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.related-posts .post-card-title a {
    color: var(--text);
    text-decoration: none;
}

.related-posts .post-card-title a:hover {
    color: var(--primary);
}

.related-posts .post-card-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .related-posts .posts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ============================================
   ARCHIVE PAGE
   ============================================ */

.archive-page {
    padding: 24px 0 48px;
}

.archive-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.archive-header h1 {
    font-size: 28px;
    font-weight: bold;
    color: var(--text);
    margin: 0 0 8px 0;
}

.archive-header p {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.subcategories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.subcategory-link {
    display: inline-block;
    padding: 8px 16px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
}

.subcategory-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.no-products,
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.no-products p,
.no-results p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.no-products .btn,
.no-results .btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: bold;
    font-size: 14px;
    margin-top: 16px;
    transition: background 0.2s;
}

.no-products .btn:hover,
.no-results .btn:hover {
    background: var(--primary-dark);
}

/* ============================================
   SEARCH PAGE
   ============================================ */

.search-page {
    padding: 24px 0 48px;
}

.search-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.search-header h1 {
    font-size: 24px;
    font-weight: bold;
    color: var(--text);
    margin: 0 0 12px 0;
}

.search-form-wrapper .search-form {
    display: flex;
    gap: 12px;
}

.search-form-wrapper .search-form input[type="text"] {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 15px;
    background: var(--background);
    transition: all 0.2s;
}

.search-form-wrapper .search-form input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--surface);
}

.search-form-wrapper .search-form button {
    padding: 14px 28px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-form-wrapper .search-form button:hover {
    background: var(--primary-dark);
}

/* ============================================
   PAGE TEMPLATE
   ============================================ */

.page-content {
    padding: 24px 0 48px;
}

.page-article {
    max-width: 100%;
}

.entry-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--text);
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.entry-content {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-weight: bold;
    margin: 1.2em 0 0.4em 0;
    line-height: 1.3;
}

.entry-content h1 { font-size: 32px; }
.entry-content h2 { font-size: 28px; }
.entry-content h3 { font-size: 24px; }
.entry-content h4 { font-size: 20px; }
.entry-content h5 { font-size: 18px; }
.entry-content h6 { font-size: 16px; }

.entry-content p {
    margin: 0 0 1em 0;
}

.entry-content a {
    color: var(--primary);
    text-decoration: underline;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1em 0;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 1em 0;
    padding-left: 24px;
}

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

.entry-content li {
    margin-bottom: 4px;
}

.entry-content blockquote {
    margin: 1.2em 0;
    padding: 16px 20px;
    border-left: 4px solid var(--primary);
    background: var(--porto-deschis);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* ============================================
   404 ERROR PAGE
   ============================================ */

.error-page {
    padding: 60px 0 80px;
}

.error-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.error-title {
    font-size: 120px;
    font-weight: bold;
    color: var(--primary);
    line-height: 1;
    margin: 0;
}

.error-subtitle {
    font-size: 28px;
    font-weight: bold;
    color: var(--text);
    margin: 16px 0 12px;
}

.error-message {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.error-actions .btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--radius-lg);
    font-weight: bold;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
}

.error-actions .btn-primary {
    background: var(--primary);
    color: white;
}

.error-actions .btn-primary:hover {
    background: var(--primary-dark);
}

.error-actions .btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 2px solid var(--border);
}

.error-actions .btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.error-categories h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 24px;
    color: var(--text);
}

@media (max-width: 768px) {
    .error-title {
        font-size: 80px;
    }
    
    .error-subtitle {
        font-size: 22px;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb {
    padding: 12px 0;
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .separator {
    color: var(--text-light);
}

.breadcrumb .current {
    color: var(--text);
    font-weight: 500;
}

/* ============================================
   PAGINATION
   ============================================ */

.site .wp-block-query-pagination,
.site .pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.site .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.site .page-numbers:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.site .page-numbers.current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ============================================
   PRODUCT SHORTCODE (plugin)
   ============================================ */

.ofp-product-card {
    background: var(--surface);
    border: 4px solid var(--porto-deschis);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.ofp-product-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.ofp-product-card .product-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
}

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

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

.ofp-product-card .product-info {
    padding: 16px;
    background: var(--porto-deschis);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.ofp-product-card .product-brand {
    font-size: 11px;
    font-weight: bold;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.ofp-product-card .product-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ofp-product-card .product-price {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary);
}

.ofp-product-card .product-price-old {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.ofp-product-card .product-btn {
    display: block;
    text-align: center;
    padding: 12px;
    background: var(--primary);
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
}

.ofp-product-card .product-btn:hover {
    background: var(--primary-dark);
    color: white;
}

/* ============================================
   PRODUCTS WIDGET (sidebar)
   ============================================ */

.ofp-products-widget {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ofp-widget-product {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--background);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.ofp-widget-product:hover {
    border-color: var(--primary);
    background: var(--porto-deschis);
}

.ofp-widget-product .product-thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.ofp-widget-product .product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ofp-widget-product .product-details {
    flex: 1;
    min-width: 0;
}

.ofp-widget-product .product-name {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text);
}

.ofp-widget-product .product-price {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary);
}

.ofp-widget-product .product-price-old {
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: line-through;
    margin-left: 6px;
}

.ofp-widget-product .product-btn-sm {
    display: block;
    text-align: center;
    padding: 6px 12px;
    background: var(--primary);
    color: white;
    font-weight: bold;
    font-size: 12px;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 4px;
    transition: background 0.2s;
}

.ofp-widget-product .product-btn-sm:hover {
    background: var(--primary-dark);
    color: white;
}

.ofp-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.ofp-widget-header a {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.ofp-widget-header a:hover {
    text-decoration: underline;
}

/* ============================================
   SEARCH WIDGET (plugin)
   ============================================ */

.ofp-widget-search-box {
    position: relative;
    width: 100%;
}

.ofp-widget-search {
    position: relative;
    width: 100%;
}

.ofp-widget-search-input {
    width: 100%;
    padding: 14px 100px 14px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 15px;
    background: var(--background);
    transition: all 0.2s;
}

.ofp-widget-search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.1);
}

.ofp-widget-search-input::placeholder {
    color: var(--text-secondary);
}

.ofp-widget-search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ofp-widget-search-btn:hover {
    background: var(--primary-dark);
}

.ofp-widget-search-btn svg {
    flex-shrink: 0;
}