/* ========================================
   Blog Page Styles - Category Design Match
   ======================================== */

/* Global Burgundy Gradient Background */
html, body {
    background: linear-gradient(135deg, #800020 0%, #a1233f 50%, #c44569 100%) !important;
    background-attachment: fixed !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    min-height: 100%;
}

/* Indian Doodle Side Decorations */
body::before,
body::after {
    content: '';
    position: fixed;
    width: 60px;
    height: 100%;
    top: 0;
    background-repeat: repeat-y;
    background-size: 60px auto;
    opacity: 0.12;
    z-index: 1;
    pointer-events: none;
}

body::before {
    left: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 120"><path d="M30 10 Q20 20 30 30 T30 50 Q40 60 30 70 T30 90 Q20 100 30 110" stroke="%23ffffff" fill="none" stroke-width="2"/><circle cx="15" cy="25" r="3" fill="%23ffffff"/><circle cx="45" cy="45" r="2" fill="%23ffffff"/><circle cx="15" cy="65" r="2.5" fill="%23ffffff"/><circle cx="45" cy="85" r="3" fill="%23ffffff"/><path d="M10 15 L15 10 L20 15" stroke="%23ffffff" fill="none" stroke-width="1.5"/><path d="M40 35 L45 30 L50 35" stroke="%23ffffff" fill="none" stroke-width="1.5"/></svg>');
}

body::after {
    right: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 120"><path d="M30 10 Q40 20 30 30 T30 50 Q20 60 30 70 T30 90 Q40 100 30 110" stroke="%23ffffff" fill="none" stroke-width="2"/><circle cx="45" cy="25" r="3" fill="%23ffffff"/><circle cx="15" cy="45" r="2" fill="%23ffffff"/><circle cx="45" cy="65" r="2.5" fill="%23ffffff"/><circle cx="15" cy="85" r="3" fill="%23ffffff"/><path d="M50 15 L45 10 L40 15" stroke="%23ffffff" fill="none" stroke-width="1.5"/><path d="M20 35 L15 30 L10 35" stroke="%23ffffff" fill="none" stroke-width="1.5"/></svg>');
}

/* Blog Hero Section */
.blog-hero {
    background: transparent;
    color: #ffffff;
    padding: 50px 0 40px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.blog-hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.blog-hero p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Blog Section */
.blog-section {
    padding: 40px 0 80px;
    background: transparent;
    position: relative;
    z-index: 2;
}

.blog-section .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 80px;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* Blog Card - Match Category Page */
.blog-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    max-height: 480px;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

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

.blog-card-image {
    position: relative;
    width: calc(100% - 40px);
    height: 160px;
    margin: 20px 20px 0 20px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.08);
}

/* Blog Tags */
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0 20px;
    margin-top: 12px;
}

.blog-tag {
    background: white;
    color: #7e484f;
    padding: 6px 14px;
    border: 1.5px solid #7e484f;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: capitalize;
    transition: all 0.3s ease;
}

/* Blog Card Content */
.blog-card-content {
    padding: 0 20px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
    margin-top: 12px;
    line-height: 1.3;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title {
    color: #8B1538;
}

.blog-card-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 0;
    border-top: none;
    margin-top: auto;
}

.blog-date {
    font-size: 15px;
    color: #888;
    font-weight: 400;
}

/* No Posts Message */
.no-posts {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.no-posts i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-posts p {
    font-size: 18px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination-btn,
.pagination-number,
.pagination-current {
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pagination-btn {
    background: white;
    color: #8B1538;
    border: 1px solid #8B1538;
}

.pagination-btn:hover {
    background: #8B1538;
    color: white;
}

.pagination-number {
    background: white;
    color: #666;
    border: 1px solid #ddd;
}

.pagination-number:hover {
    background: #f8f8f8;
    border-color: #8B1538;
    color: #8B1538;
}

.pagination-current {
    background: #8B1538;
    color: white;
    border: 1px solid #8B1538;
}


/* ========================================
   Single Blog Post Styles - UPDATED TO MATCH CATEGORY
   ======================================== */

.blog-post-container {
    padding: 0;
    background: transparent;
    min-height: 100vh;
    position: relative;
    z-index: 2;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    padding: 24px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.breadcrumb span:not(a) {
    color: rgba(255, 255, 255, 0.7);
}

/* Blog Post - STYLED LIKE CATEGORY SEO BOX */
.blog-post {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    border: 3px solid #8B0000;
    border-radius: 30px;
    padding: 50px;
    margin-bottom: 60px;
    box-shadow: 0 10px 40px rgba(139, 0, 0, 0.1);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
}

/* Decorative circles like category page */
.blog-post::before,
.blog-post::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at center, transparent 40%, #8B0000 41%, #8B0000 43%, transparent 44%);
    opacity: 0.1;
}

.blog-post::before {
    top: -75px;
    left: -75px;
    transform: rotate(45deg);
}

.blog-post::after {
    bottom: -75px;
    right: -75px;
    transform: rotate(225deg);
}

/* Swirl decorations */
.blog-post .swirl-decoration {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid #8B0000;
    border-radius: 50% 0 50% 50%;
    opacity: 0.15;
}

.blog-post .swirl-decoration.top-left {
    top: 20px;
    left: 20px;
    transform: rotate(-45deg);
}

.blog-post .swirl-decoration.bottom-right {
    bottom: 20px;
    right: 20px;
    transform: rotate(135deg);
}

.blog-post-header {
    margin-bottom: 48px;
    text-align: left;
    position: relative;
    z-index: 1;
}

.blog-post-header h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
    color: #8B0000;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    text-shadow: 1px 1px 2px rgba(139, 0, 0, 0.1);
}

.blog-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 16px;
    border-top: 2px solid #8B0000;
    background: linear-gradient(90deg, transparent 0%, #8B0000 50%, transparent 100%);
    background-size: 100% 2px;
    background-repeat: no-repeat;
    background-position: top;
    position: relative;
}

.blog-post-meta::before {
    content: '❋';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff5f5;
    padding: 0 15px;
    color: #8B0000;
    font-size: 1.2rem;
}

.post-date {
    font-size: 15px;
    color: #5a0000;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

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

.post-tag {
    background: #f5f5f7;
    color: #8B0000;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #8B0000;
}

.blog-post-image {
    width: 100%;
    max-height: 520px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 56px;
    box-shadow: 0 4px 24px rgba(139, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #5a0000;
    margin-bottom: 64px;
    position: relative;
    z-index: 1;
}

.blog-post-content p {
    margin-bottom: 28px;
    text-align: justify;
}

.blog-post-content h2,
.blog-post-content h3 {
    margin-top: 48px;
    margin-bottom: 20px;
    color: #8B0000;
    font-weight: 700;
    padding-left: 15px;
    border-left: 4px solid #8B0000;
}

.blog-post-content h2 {
    font-size: 1.5rem;
}

.blog-post-content h3 {
    font-size: 1.3rem;
}

.blog-post-content ol,
.blog-post-content ul {
    color: #5a0000;
    font-size: 1.05rem;
    line-height: 1.8;
    padding-left: 25px;
    margin: 20px 0;
}

.blog-post-content ol li,
.blog-post-content ul li {
    margin-bottom: 10px;
    padding-left: 5px;
}

.blog-post-content ol li::marker {
    color: #8B0000;
    font-weight: 700;
}

/* Share Buttons */
.blog-post-share {
    padding-top: 40px;
    border-top: 2px solid transparent;
    background: linear-gradient(90deg, transparent 0%, #8B0000 50%, transparent 100%);
    background-size: 100% 2px;
    background-repeat: no-repeat;
    background-position: top;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.blog-post-share::before {
    content: '❋';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff5f5;
    padding: 0 15px;
    color: #8B0000;
    font-size: 1.2rem;
}

.blog-post-share h4 {
    font-size: 17px;
    margin-bottom: 20px;
    color: #8B0000;
    font-weight: 600;
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.share-btn.vk { background: #4C75A3; }
.share-btn.telegram { background: #0088cc; }
.share-btn.whatsapp { background: #25D366; }

/* ========================================
   Related Products Section - Match Category
   ======================================== */

.related-products {
    margin: 80px 0 60px;
    padding: 60px 0;
    background: transparent;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.section-header p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Products Grid - Match Category Page Exactly */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 0 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 16px;
}

.product-card:hover {
    transform: none;
}

.product-card:hover .product-image-wrapper {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: #ffffff;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* Quick View Button - MOVED TO TOP LEFT WITH GOLDEN STYLING */
.quick-view-btn,
.shortcode-products-grid .quick-view-btn {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    width: 36px !important;
    height: 36px !important;
    background: #FFFFFF !important;
    stroke: #800020 !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
    box-shadow: 0 2px 8px rgba(187, 161, 79, 0.3) !important;
    padding: 0 !important;
    flex: none !important;
}

.quick-view-btn:hover,
.shortcode-products-grid .quick-view-btn:hover {
    background: #800020 !important;
    box-shadow: 0 4px 12px rgba(187, 161, 79, 0.5) !important;
    transform: scale(1.1) !important;
    stroke: #ffffff !important;
}

.quick-view-btn svg,
.shortcode-products-grid .quick-view-btn svg {
    width: 18px !important;
    height: 18px !important;
    stroke: #800020 !important;
    fill: none !important;
    stroke-width: 2 !important;
    transition: all 0.3s ease !important;
}

.quick-view-btn:hover svg,
.shortcode-products-grid .quick-view-btn:hover svg  {
    stroke: #FFFFFF !important;
}    

/* Wishlist Button - Keep on right */
.wishlist-btn,
.shortcode-products-grid .wishlist-btn {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 36px !important;
    height: 36px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.wishlist-btn:hover,
.shortcode-products-grid .wishlist-btn:hover {
    transform: scale(1.1) !important;
    background: #800020 !important;
}

.wishlist-btn.active,
.shortcode-products-grid .wishlist-btn.active {
    background: #ff4757 !important;
}

.wishlist-btn svg,
.shortcode-products-grid .wishlist-btn svg {
    width: 18px !important;
    height: 18px !important;
    stroke: #800020 !important;
    fill: none !important;
    stroke-width: 2 !important;
    transition: all 0.3s ease !important;
}

.wishlist-btn:hover svg,
.shortcode-products-grid .wishlist-btn:hover svg {
    stroke: #FFFFFF !important;
}    

.wishlist-btn.active svg,
.shortcode-products-grid .wishlist-btn.active svg {
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

/* Discount Badge - GOLDEN SQUARE STYLING */
.discount-badge,
.shortcode-products-grid .discount-badge {
    position: absolute !important;
    bottom: 12px !important;
    left: 12px !important;
    background: #BBA14F !important;
    color: #1a1a1a !important;
    padding: 6px 10px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    z-index: 2 !important;
    box-shadow: 0 2px 6px rgba(187, 161, 79, 0.4) !important;
}

.product-info {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.product-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.product-price {
    margin-bottom: 12px;
}

.current-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-right: 8px;
}

.original-price {
    font-size: 0.9rem;
    color: #bdc3c7;
    text-decoration: line-through;
}

/* Product Actions - Cart Button Only (Quick View moved to image) */
.product-actions,
.shortcode-products-grid .product-actions {
    display: flex !important;
    gap: 0 !important;
    margin-top: auto !important;
}

/* Update Add to Cart Button - Full Width with Prices Inside */
.add-to-cart-btn,
.shortcode-products-grid .add-to-cart-btn {
    flex: 1 !important;
    width: 100% !important;
    height: 42px !important;
    background: transparent !important;
    color: #800020 !important;
    border: 3px solid #800020 !important;
    border-radius: 24px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 8px 12px !important;
}

.add-to-cart-btn:hover,
.shortcode-products-grid .add-to-cart-btn:hover {
    background: #800020 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(128, 0, 32, 0.4) !important;
}

.add-to-cart-btn:disabled,
.shortcode-products-grid .add-to-cart-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    background: #6c757d !important;
    border-color: #6c757d !important;
}

.add-to-cart-btn .action-svg,
.shortcode-products-grid .add-to-cart-btn .action-svg {
    width: 20px !important;
    height: 20px !important;
    stroke: currentColor !important;
    flex-shrink: 0 !important;
}

/* Price inside button styling */
.price-inside-btn,
.shortcode-products-grid .price-inside-btn {
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.price-original-inline,
.shortcode-products-grid .price-original-inline {
    color: #999 !important;
    text-decoration: line-through !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
}

.price-current-inline,
.shortcode-products-grid .price-current-inline {
    color: inherit !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
}

/* When button is hovered, update inline price colors */
.add-to-cart-btn:hover .price-original-inline,
.shortcode-products-grid .add-to-cart-btn:hover .price-original-inline {
    color: rgba(255, 255, 255, 0.7) !important;
}

.add-to-cart-btn:hover .price-current-inline,
.shortcode-products-grid .add-to-cart-btn:hover .price-current-inline {
    color: #fff !important;
}

.action-svg {
    width: 20px;
    height: 20px;
}

.svg-path {
    stroke: currentColor;
}

/* IMPROVED EXPLORE MORE BUTTON - More Visible and Darker */
.explore-more-wrapper {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 32px;
    padding: 0;
}

.explore-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.5);
    padding: 14px 28px;
    border-radius: 24px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.explore-more-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.explore-more-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.explore-more-btn:hover i {
    transform: translateX(4px);
}

/* Shortcode Products Wrapper */
.shortcode-products-wrapper {
    margin: 48px 0;
    position: relative;
}

/* Shortcode Products - Match Category Design EXACTLY */
.shortcode-products-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0 !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
    max-width: 1400px !important;
    position: relative;
}

.shortcode-products-grid .product-card {
    background: transparent !important;
    padding: 16px !important;
    border-radius: 0 !important;
    overflow: visible !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.shortcode-products-grid .product-card:hover {
    transform: none !important;
}

.shortcode-products-grid .product-card:hover .product-image-wrapper {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

.shortcode-products-grid .product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: #ffffff !important;
    overflow: hidden;
    border-radius: 24px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease;
    margin-bottom: 5px !important;
    margin: 0 !important;
    margin-bottom: 5px !important;
}

.shortcode-products-grid .product-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease;
}

.shortcode-products-grid .product-card:hover .product-image {
    transform: scale(1.05);
}

.shortcode-products-grid .product-info {
    padding: 16px !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 24px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
    margin: 0 !important;
}

.shortcode-products-grid .product-title {
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: #2c3e50 !important;
    margin-bottom: 12px !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 42px !important;
    margin-top: 0 !important;
}

/* Explore More for Shortcode - IMPROVED VISIBILITY */
.shortcode-products-wrapper .explore-more-wrapper {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 32px !important;
    padding: 0 !important;
    width: 100% !important;
    clear: both !important;
}

.shortcode-products-wrapper .explore-more-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.5) !important;
    padding: 14px 28px !important;
    border-radius: 24px !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.shortcode-products-wrapper .explore-more-btn:hover {
    background: rgba(0, 0, 0, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4) !important;
}

.shortcode-products-wrapper .explore-more-btn i {
    font-size: 16px !important;
    transition: transform 0.3s ease !important;
}

.shortcode-products-wrapper .explore-more-btn:hover i {
    transform: translateX(4px) !important;
}

/* Empty State */
.shortcode-empty {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    border-radius: 16px;
    margin: 40px 0;
}

.shortcode-empty p {
    color: #86868b;
    font-size: 16px;
    margin: 0;
}

/* Back to Blog */
.back-to-blog {
    text-align: center;
    margin: 64px 0 80px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.95);
    color: #1d1d1f;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Quick View Modal */
.quick-view-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.85);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.quick-view-modal.active {
    display: flex;
}

.quick-view-content {
    background: #ffffff;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quick-view-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: #ecf0f1;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.quick-view-close:hover {
    background: #e74c3c;
}

.quick-view-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 40px;
}

.quick-view-image {
    width: 100%;
    border-radius: 12px;
}

.quick-view-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.quick-view-price {
    margin-bottom: 16px;
}

.quick-view-description {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.quick-view-meta {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #ecf0f1;
    font-size: 0.9rem;
}

.meta-label {
    font-weight: 600;
    color: #2c3e50;
}

.meta-value {
    color: #7f8c8d;
}

.quick-view-add-to-cart {
    width: 100%;
    height: 48px;
    background: #800020;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-view-add-to-cart:hover {
    background: #a00028;
    transform: translateY(-2px);
}

.quick-view-link {
    display: block;
    text-align: center;
    margin-top: 14px;
    color: #8B0000;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1200px) {
    .blog-section .container {
        padding: 0 50px;
    }
    
    .products-grid,
    .shortcode-products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        padding: 0 32px !important;
    }
}

@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid,
    .shortcode-products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .blog-post {
        padding: 40px 32px;
    }
    
    .blog-post-header h1 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    body::before,
    body::after {
        width: 40px;
        background-size: 40px auto;
    }
    
    .blog-hero h1 {
        font-size: 36px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    /* FIXED MOBILE ALIGNMENT - CENTER PRODUCTS */
    .products-grid,
    .shortcode-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0 !important;
        padding: 0 20px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        justify-content: center !important;
    }
    
    .product-card,
    .shortcode-products-grid .product-card {
        padding: 10px !important;
    }
    
    .blog-post {
        padding: 32px 24px;
        border-radius: 20px;
    }
    
    .blog-post .swirl-decoration {
        display: none;
    }
    
    .blog-post-header h1 {
        font-size: 1.5rem;
    }
    
    .blog-post-content {
        font-size: 0.95rem;
    }
    
    .quick-view-body {
        grid-template-columns: 1fr;
    }
    
    .explore-more-wrapper,
    .shortcode-products-wrapper .explore-more-wrapper {
        padding: 0 20px !important;
        justify-content: center !important;
    }
    
    .explore-more-btn,
    .shortcode-products-wrapper .explore-more-btn {
        font-size: 15px !important;
        padding: 12px 24px !important;
    }
}

@media (max-width: 480px) {
    body::before,
    body::after {
        display: none;
    }
    
    .blog-hero {
        padding: 40px 0 30px;
    }
    
    .blog-hero h1 {
        font-size: 28px;
    }
    
    /* FIXED MOBILE ALIGNMENT - TRULY CENTERED */
    .products-grid,
    .shortcode-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        padding: 0 10px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        justify-items: center !important;
    }
    
    .product-card,
    .shortcode-products-grid .product-card {
        padding: 8px !important;
        max-width: 100% !important;
    }
    
    .blog-post {
        padding: 24px 20px;
        border-radius: 16px;
    }
    
    .blog-post-header h1 {
        font-size: 1.3rem;
    }
    
    .blog-post-content {
        font-size: 0.9rem;
    }
    
    .blog-post-content h2 {
        font-size: 1.3rem;
    }
    
    .blog-post-content h3 {
        font-size: 1.1rem;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .explore-more-btn,
    .shortcode-products-wrapper .explore-more-btn {
        font-size: 14px !important;
        padding: 10px 20px !important;
    }
}

/* Loading State */
.loading {
    text-align: center;
    padding: 30px;
    font-size: 1rem;
    color: #95a5a6;
}