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

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

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

@media (max-width: 640px) {
    .ofp-products-grid { grid-template-columns: 1fr; }
}

.product-card {
    background: var(--surface, #fff);
    border: 4px solid var(--porto-deschis, #f5f5f0);
    border-radius: var(--radius-lg, 16px);
    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, 0 20px 40px rgba(0,0,0,0.12));
    transform: translateY(-6px);
}

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

.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, #9ca3af);
    font-size: 14px;
}

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

.product-card-brand {
    font-size: 12px;
    font-weight: bold;
    color: var(--primary, #0d9488);
    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;
    margin: 0 0 12px 0;
}

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

.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, #6b7280);
    margin-left: 4px;
}

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

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

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

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

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

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

.price-discount-badge {
    background: var(--primary);
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
}

.product-action {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background-color: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

.ofp-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.ofp-view-all {
    color: var(--primary, #0d9488);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

.ofp-view-all:hover {
    text-decoration: underline;
}

.ofp-no-products {
    text-align: center;
    color: var(--text-secondary, #6b7280);
    padding: 40px 20px;
    font-size: 15px;
}

.ofp-error {
    color: var(--danger, #ef4444);
    padding: 20px;
    background: #fef2f2;
    border-radius: 8px;
    font-size: 14px;
}

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

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

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

.ofp-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    background: var(--surface, #fff);
    border-radius: var(--radius-lg, 16px);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    text-align: center;
}

.ofp-category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.ofp-category-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
    border-radius: 12px;
    color: var(--primary, #0d9488);
    margin-bottom: 12px;
}

.ofp-category-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.ofp-category-card span {
    font-size: 12px;
    color: var(--text-secondary, #6b7280);
}

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

.ofp-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-light, #e5e7eb);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.ofp-search-input:focus {
    outline: none;
    border-color: var(--primary, #0d9488);
}

.ofp-search-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary, #0d9488), var(--primary-light, #14b8a6));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ofp-search-btn:hover {
    background: linear-gradient(135deg, #0f766e, var(--primary, #0d9488));
}

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

.ofp-widget-product {
    display: flex;
    gap: 12px;
    text-decoration: none;
    padding: 12px;
    background: var(--surface, #fff);
    border-radius: var(--radius-lg, 12px);
    border: 4px solid var(--porto-deschis, #f5f5f0);
    transition: all 0.3s ease;
}

.ofp-widget-product:hover {
    border-color: var(--primary, #0d9488);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
}

.ofp-widget-product .product-thumb {
    width: 100px;
    height: 150px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
}

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

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

.ofp-widget-product .product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

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

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

.ofp-widget-product .product-price-current {
    font-size: 18px;
    font-weight: bold;
    color: #f26522;
}

.ofp-widget-product .product-price-current sup {
    font-size: 12px;
    vertical-align: super;
}

.ofp-widget-product .product-price-old {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: bold;
}

.ofp-widget-product .product-btn-sm {
    font-size: 12px;
    color: var(--alb, #0d9488);
    font-weight: 600;
    margin-top: 6px;
}

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


.ofp-widget-header {
    margin-top: 12px;
    text-align: center;
}

.ofp-widget-header a {
    color: var(--primary, #0d9488);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

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

.ofp-widget-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ofp-widget-categories li {
    border-bottom: 1px solid var(--border-light, #e5e7eb);
}

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

.ofp-widget-categories a {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.ofp-widget-categories a:hover {
    color: var(--primary, #0d9488);
}

.ofp-widget-categories .count {
    color: var(--text-secondary, #6b7280);
    font-size: 13px;
}

.ofp-widget-search-box {
    padding: 4px;
}

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

.ofp-widget-search-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-light, #e5e7eb);
    border-radius: 10px;
    font-size: 14px;
}

.ofp-widget-search-input:focus {
    outline: none;
    border-color: var(--primary, #0d9488);
}

.ofp-widget-search-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--primary, #0d9488), var(--primary-light, #14b8a6));
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ofp-widget-search-btn:hover {
    background: linear-gradient(135deg, #0f766e, var(--primary, #0d9488));
}

.ofp-single-product .product-card {
    max-width: 360px;
    margin: 0 auto;
}

.related-products-section {
    margin-top: 40px;
    /* padding-top: 30px; */
    border-top: 1px solid var(--primary);
}

.related-products-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 20px 0;
}

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

.related-products-grid.related-products-cols-2 { grid-template-columns: repeat(2, 1fr); }
.related-products-grid.related-products-cols-3 { grid-template-columns: repeat(3, 1fr); }
.related-products-grid.related-products-cols-4 { grid-template-columns: repeat(4, 1fr); }
.related-products-grid.related-products-cols-5 { grid-template-columns: repeat(5, 1fr); }
.related-products-grid.related-products-cols-6 { grid-template-columns: repeat(6, 1fr); }

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

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

@media (max-width: 640px) {
    .related-products-grid { grid-template-columns: 1fr !important; }
}