/* Frontend Styles for Product Widget Block */

.gpw-product-widget {
	display: flex;
	flex-direction: row;
	overflow: hidden;
	background: #ffffff;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
.gpw-product-widget:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.gpw-product-image {
    position: relative;
    width: 50%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gpw-product-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.3s ease;
	max-width: 100%;
	max-height: 100%;
}

.gpw-no-image {
    color: #6c757d;
    font-size: 16px;
    text-align: center;
    font-weight: 500;
}

.gpw-product-content {
	padding: 0;
	width: 50%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.gpw-product-widget .gpw-product-price {
	margin: 0;
}
.gpw-product-widget .editor-image {
	height: 100%;
	padding: 15px;
}
.gpw-product-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #212529;
    line-height: 1.3;
    min-height: auto;
}

.gpw-product-price {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.gpw-price {
	font-size: 18px;
	font-weight: 800;
	color: #fff;
}

.gpw-regular-price {
    font-size: 16px;
    color: #adb5bd;
    text-decoration: line-through;
    font-weight: 500;
}

.gpw-sale-price {
    font-size: 18px;
    font-weight: 800;
    color: #e74c3c;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gpw-product-attributes {
    margin-bottom: 24px;
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: none;
}

.gpw-attribute {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 8px;
	font-size: 16px;
	line-height: 1.4;
	border-bottom: 1px solid #e9ecef;
}

.gpw-attribute:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.gpw-attribute-title {
    font-weight: 600;
    color: #495057;
    flex-shrink: 0;
    margin-left: 8px;
}

.gpw-attribute-value {
    color: #212529;
    text-align: left;
}

.gpw-attribute-separator {
    display: none;
}

.gpw-view-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 600;
	text-align: center;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
	width: auto;
	box-sizing: border-box;
	font-size: 14px;
	text-transform: none;
	position: relative;
	overflow: hidden;
	margin-left: 12px;
	color: #fff;
}



.gpw-view-button:hover::before {
    left: 100%;
}

.gpw-view-button:active {
    transform: translateY(0);
}

/* RTL Support */
[dir="rtl"] .gpw-attribute-title {
    margin-left: 0;
    margin-right: 8px;
}

[dir="rtl"] .gpw-attribute-value {
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gpw-product-widget {
        max-width: 100%;
        margin: 0;
        flex-direction: column;
    }
    
    .gpw-product-image {
        width: 100%;
        height: 200px;
    }
    
    .gpw-product-content {
        width: 100%;
        padding: 20px;
    }
    
    .gpw-product-title {
        font-size: 20px;
    }
    
    .gpw-price,
    .gpw-sale-price {
        font-size: 16px;
    }
    
    .gpw-regular-price {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .gpw-product-content {
        padding: 16px;
    }
    
    .gpw-product-title {
        font-size: 16px;
        min-height: 44px;
    }
    
    .gpw-product-image {
        height: 180px;
    }
    
    .gpw-view-button {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Print Styles */
@media print {
    .gpw-product-widget {
        box-shadow: none;
        border: 1px solid #000;
        break-inside: avoid;
    }
    
    .gpw-view-button {
        background: #000 !important;
        color: #fff !important;
    }
}
