/* WP Digi Frontend Styles (fallback templates) */

.wpdigi-single-product {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.wpdigi-product-header {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.wpdigi-product-image {
    flex: 0 0 45%;
    max-width: 45%;
}

.wpdigi-product-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.wpdigi-product-summary {
    flex: 1;
}

.wpdigi-product-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 16px;
    line-height: 1.3;
}

.wpdigi-product-price {
    font-size: 32px;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 20px;
}

.wpdigi-buy-button {
    display: inline-block;
    background: #27ae60;
    color: #fff;
    padding: 14px 40px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: background 0.2s;
    margin-bottom: 20px;
}

.wpdigi-buy-button:hover {
    background: #219a52;
    color: #fff;
}

.wpdigi-product-categories {
    margin-top: 16px;
    font-size: 14px;
    color: #666;
}

.wpdigi-product-categories a {
    color: #0073aa;
    text-decoration: none;
    margin-right: 8px;
}

.wpdigi-product-categories a:hover {
    text-decoration: underline;
}

/* Gallery */
.wpdigi-product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 40px;
}

.wpdigi-product-gallery a {
    display: block;
    border-radius: 6px;
    overflow: hidden;
}

.wpdigi-product-gallery img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.2s;
}

.wpdigi-product-gallery a:hover img {
    transform: scale(1.05);
}

/* Description */
.wpdigi-product-description {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.wpdigi-product-description h2,
.wpdigi-product-description h3,
.wpdigi-product-description h4 {
    margin-top: 24px;
    margin-bottom: 12px;
}

.wpdigi-product-description img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Archive */
.wpdigi-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.wpdigi-archive-header {
    margin-bottom: 40px;
    text-align: center;
}

.wpdigi-archive-image {
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 16px;
}

.wpdigi-archive-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.wpdigi-archive-description {
    font-size: 16px;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

/* Grid */
.wpdigi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.wpdigi-grid-item {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s, transform 0.2s;
}

.wpdigi-grid-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Product card */
.wpdigi-product-card .wpdigi-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.wpdigi-card-body {
    padding: 16px;
}

.wpdigi-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.4;
}

.wpdigi-card-price {
    font-size: 18px;
    font-weight: 700;
    color: #e74c3c;
}

/* Category card */
.wpdigi-category-card {
    text-align: center;
    padding: 20px;
}

.wpdigi-category-card img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 6px;
    margin-bottom: 12px;
}

.wpdigi-category-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px;
}

.wpdigi-count {
    font-size: 13px;
    color: #999;
}

/* Subcategories section */
.wpdigi-subcategories {
    margin-bottom: 40px;
}

.wpdigi-subcategories h2 {
    font-size: 22px;
    margin-bottom: 16px;
}

/* Elementor widget styles */
.wpdigi-el-card {
    display: block;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s, transform 0.2s;
}

.wpdigi-el-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.wpdigi-el-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.wpdigi-el-card-body {
    padding: 16px;
}

.wpdigi-el-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.4;
}

.wpdigi-el-card-price {
    font-size: 18px;
    font-weight: 700;
}

/* Elementor buy button */
.wpdigi-el-buy-btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s, opacity 0.2s;
    cursor: pointer;
    text-align: center;
}

.wpdigi-el-buy-btn:hover {
    opacity: 0.9;
}

/* Elementor category grid */
.wpdigi-el-cat-card {
    display: block;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.wpdigi-el-cat-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.wpdigi-el-cat-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.wpdigi-el-cat-body {
    padding: 16px;
}

.wpdigi-el-cat-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px;
}

.wpdigi-el-cat-count {
    font-size: 13px;
    color: #999;
}

/* Elementor single card */
.wpdigi-el-single-card {
    overflow: hidden;
}

.wpdigi-el-single-image img {
    width: 100%;
    height: auto;
    display: block;
}

.wpdigi-el-single-title {
    font-size: 24px;
    font-weight: 700;
    margin: 16px 0 12px;
}

.wpdigi-el-single-price {
    font-size: 28px;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 16px;
}

.wpdigi-el-single-cats {
    margin-bottom: 12px;
    font-size: 14px;
}

.wpdigi-el-single-cats a {
    color: #0073aa;
    text-decoration: none;
}

.wpdigi-el-single-cats a:hover {
    text-decoration: underline;
}

/* Elementor info widget */
.wpdigi-el-info-price {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.wpdigi-el-info-did {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}

.wpdigi-el-info-cats {
    margin-bottom: 16px;
    font-size: 14px;
}

.wpdigi-el-info-cats a {
    color: #0073aa;
    text-decoration: none;
}

.wpdigi-el-info-desc {
    line-height: 1.7;
}

.wpdigi-el-info-desc img {
    max-width: 100%;
    height: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .wpdigi-product-header {
        flex-direction: column;
    }

    .wpdigi-product-image {
        flex: none;
        max-width: 100%;
    }

    .wpdigi-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }
}
