/* ============================================
   PRODUCT CARDS - CLEAN STYLING
============================================ */
.sh-product-card {
    border: 1px solid #E2E2E2 !important;
    border-radius: 12px !important;
    background-color: #FFFFFF;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sh-product-card:hover {
    box-shadow: 0 8px 24px rgba(47, 94, 46, 0.15);
    border-color: #2F5E2E !important;
    transform: translateY(-4px);
}

/* ============================================
   DISCOUNT TAGS - GOLDEN STYLE
============================================ */
.sh-product-card-discount-tag {
    font-weight: 600 !important;
    border-radius: 8px 0 12px 0 !important;
    background: linear-gradient(135deg, #D4AF37 0%, #F4D03F 100%) !important;
    color: #2F5E2E !important;
    right: auto !important;
    top: 0 !important;
    left: 0 !important;
    padding: 8px 16px;
    font-size: 13px;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.3);
    z-index: 2;
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.sh-product-discount-tag {
    font-weight: 600 !important;
    border-radius: 20px !important;
    background: linear-gradient(135deg, #D4AF37 0%, #F4D03F 100%) !important;
    color: #2F5E2E !important;
    padding: 6px 16px;
    font-size: 12px;
    box-shadow: 0 3px 8px rgba(212, 175, 55, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ============================================
   BUTTONS - CLEAN & ROUNDED
============================================ */

/* BASE BUTTON STYLES */
.pr-outlined-button,
button:contains("Add to Cart"),
button[class*="add-to-cart"],
button:contains("Buy Now"),
button[class*="buy-now"] {
    position: relative;
    z-index: 1;
    border: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
}

/* ADD TO CART BUTTON - SPECIFIC STYLES */
.pr-outlined-button,
button:contains("Add to Cart"),
button[class*="add-to-cart"] {
    border-radius: 30px !important;
    background: linear-gradient(135deg, #2F5E2E 0%, #4E8F4E 100%) !important;
    color: white !important;
    padding: 12px 32px !important;
    box-shadow: 0 4px 12px rgba(47, 94, 46, 0.2);
}

/* Buy Now Button Styles */
button:contains("Buy Now"),
button[class*="buy-now"] {
    border-radius: 30px !important;
    background: linear-gradient(135deg, #29A56C 0%, #34C77B 100%) !important;
    color: white !important;
    padding: 12px 32px !important;
    box-shadow: 0 4px 12px rgba(41, 165, 108, 0.2);
}

/* Button Hover Effects */
.pr-outlined-button:hover,
button:contains("Add to Cart"):hover,
button[class*="add-to-cart"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(47, 94, 46, 0.3);
    background: linear-gradient(135deg, #4E8F4E 0%, #6BAA6B 100%) !important;
}

button:contains("Buy Now"):hover,
button[class*="buy-now"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(41, 165, 108, 0.3);
    background: linear-gradient(135deg, #34C77B 0%, #3FD68A 100%) !important;
}

/* Button Active State */
.pr-outlined-button:active,
button:contains("Add to Cart"):active,
button:contains("Buy Now"):active {
    transform: translateY(0);
}

/* ============================================
   FIX FOR QUANTITY SELECTOR LAYOUT SHIFT
   Prevents layout from breaking when Add to Cart becomes quantity selector
============================================ */

/* Desktop - Fixed layout with equal width buttons */
@media only screen and (min-width: 769px) {
    /* Target the container that holds the buttons */
    .sh-product-card .flex:has(.pr-outlined-button),
    .sh-product-card .flex:has(.sh-product-plus-minus-button) {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        width: 100% !important;
    }
    
    /* Make both buttons/quantity selectors take equal width */
    .sh-product-card .pr-outlined-button,
    .sh-product-card .sh-product-plus-minus-button,
    .sh-product-card button:contains("Buy Now"),
    .sh-product-card button[class*="buy-now"] {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: auto !important;
        margin: 0 !important;
    }
    
    /* Quantity selector specific styling to maintain equal height */
    .sh-product-card .sh-product-plus-minus-button {
        /* height: auto !important;
        min-height: 44px !important;
        padding: 8px 12px !important;
        white-space: nowrap !important; */
    }
}

/* Mobile - Stacked layout */
@media only screen and (max-width: 768px) {
    /* Target the container that holds the buttons */
    .sh-product-card .flex:has(.pr-outlined-button),
    .sh-product-card .flex:has(.sh-product-plus-minus-button) {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
    }
    
    /* Make all items full width */
    .sh-product-card .pr-outlined-button,
    .sh-product-card .sh-product-plus-minus-button,
    .sh-product-card button:contains("Buy Now"),
    .sh-product-card button[class*="buy-now"] {
        width: 100% !important;
        min-width: 100% !important;
        margin: 0 !important;
    }
    
    /* Quantity selector full width on mobile */
    .sh-product-card .sh-product-plus-minus-button {
        width: 100% !important;
        justify-content: space-between !important;
        padding: 8px 16px !important;
    }
}

/* ============================================
   CATEGORY CARDS - ANIMATED & ELEVATED
============================================ */
.sh-category-card > a > div {
    padding: 24px 20px !important;
    border: 2px solid transparent !important;
    border-radius: 16px !important;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #FFFFFF !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Gradient Border on Hover */
.sh-category-card > a > div::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #2F5E2E 0%, #4E8F4E 50%, #2F5E2E 100%);
    background-size: 200% 200%;
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Shimmer Effect */
.sh-category-card > a > div::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.7s ease;
    z-index: 1;
}

.sh-category-card > a > div:hover::after {
    left: 100%;
}

/* Category Icon/Image */
.sh-category-card > a > div > img,
.sh-category-card > a > div > svg,
.sh-category-card > a > div > i {
    width: 48px !important;
    height: 48px !important;
    margin-bottom: 16px !important;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: grayscale(0.5) brightness(0.9);
}

/* Hover Effects */
.sh-category-card > a > div:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(47, 94, 46, 0.15);
    border-color: transparent !important;
}

.sh-category-card > a > div:hover::before {
    opacity: 1;
    animation: borderGlow 2s infinite linear;
}

.sh-category-card > a > div:hover > img,
.sh-category-card > a > div:hover > svg,
.sh-category-card > a > div:hover > i {
    transform: scale(1.2) rotate(5deg);
    filter: grayscale(0) brightness(1);
}

/* Floating Animation for Each Card */
.sh-category-card:nth-child(3n-2) > a > div {
    animation: floatCard 6s ease-in-out infinite;
}

.sh-category-card:nth-child(3n-1) > a > div {
    animation: floatCard 6s ease-in-out infinite 0.5s;
}

.sh-category-card:nth-child(3n) > a > div {
    animation: floatCard 6s ease-in-out infinite 1s;
}

/* Alternating Backgrounds with Glossy Effect */
.sh-category-card:nth-child(3n-2) > a > div {
    background: linear-gradient(135deg, 
        rgba(238, 246, 238, 0.9) 0%,
        rgba(255, 255, 255, 1) 50%,
        rgba(248, 252, 248, 0.9) 100%
    ) !important;
    border-top: 4px solid rgba(47, 94, 46, 0.1) !important;
}

.sh-category-card:nth-child(3n-1) > a > div {
    background: linear-gradient(135deg,
        rgba(255, 249, 230, 0.9) 0%,
        rgba(255, 255, 255, 1) 50%,
        rgba(255, 254, 248, 0.9) 100%
    ) !important;
    border-top: 4px solid rgba(212, 175, 55, 0.1) !important;
}

.sh-category-card:nth-child(3n) > a > div {
    background: linear-gradient(135deg,
        rgba(253, 241, 232, 0.9) 0%,
        rgba(255, 255, 255, 1) 50%,
        rgba(255, 249, 245, 0.9) 100%
    ) !important;
    border-top: 4px solid rgba(41, 165, 108, 0.1) !important;
}

/* Category Text with Icon */
.sh-category-card > a > div > p {
    line-height: 28px;
    font-size: 18px;
    color: #2F5E2E;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 56px;
    position: relative;
    padding-left: 36px;
    margin-bottom: 0;
    transition: all 0.4s ease;
    background: linear-gradient(135deg, #2F5E2E, #4E8F4E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Arrow Icon */
.sh-category-card > a > div > p::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 24px;
    color: #D4AF37;
    opacity: 0.7;
    transform: translateX(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sh-category-card > a > div:hover > p::before {
    transform: translateX(8px);
    opacity: 1;
    color: #2F5E2E;
    animation: arrowBounce 0.6s ease;
}

/* Item Count Badge */
.sh-category-card > a > div > span,
.sh-category-card > a > div > .category-count {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: linear-gradient(135deg, #D4AF37 0%, #F4D03F 100%);
    color: #2F5E2E;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    z-index: 2;
}

.sh-category-card > a > div:hover > span,
.sh-category-card > a > div:hover > .category-count {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* ANIMATIONS */
@keyframes floatCard {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes borderGlow {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 200%;
    }
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(12px);
    }
}

/* ============================================
   PLUS/MINUS BUTTONS - ROUNDED
============================================ */
.sh-product-plus-minus-button {
    border: 2px solid #2F5E2E !important;
    background-color: #FFFFFF !important;
    color: #2F5E2E !important;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sh-product-plus-minus-button:hover {
    background-color: #2F5E2E !important;
    color: #FFFFFF !important;
    transform: scale(1.1);
}

/* ============================================
   SOLID BUTTON STYLES
============================================ */
.sh-solid-button {
    border-radius: 30px !important;
    background: linear-gradient(135deg, #2F5E2E 0%, #4E8F4E 100%) !important;
    color: #FFFFFF !important;
    padding: 12px 32px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(47, 94, 46, 0.2);
    transition: all 0.1s ease;
    letter-spacing: 0.5px;
}

.sh-solid-button:hover {
    background: linear-gradient(135deg, #4E8F4E 0%, #6BAA6B 100%) !important;
    box-shadow: 0 6px 18px rgba(47, 94, 46, 0.3);
    transform: translateY(-2px);
}

/* ============================================
   PRODUCT IMAGE STYLING
============================================ */
.sh-product-card img,
.sh-product-card-image,
.sh-product-card-thumbnail {
    border-radius: 12px 12px 0 0 !important;
    display: block;
    width: 100%;
    transition: transform 0.5s ease;
}

.sh-product-card:hover img,
.sh-product-card:hover .sh-product-card-image,
.sh-product-card:hover .sh-product-card-thumbnail {
    transform: scale(1.05);
}

.sh-product-detail-image,
.sh-product-detail-image img {
    border-radius: 16px !important;
    overflow: hidden !important;
}

/* ============================================
   PRICE STYLING
============================================ */
.sh-product-price {
    font-size: 22px;
    font-weight: 700;
    color: #2F5E2E;
    position: relative;
    display: inline-block;
}

.sh-product-original-price {
    font-size: 16px;
    color: #888;
    text-decoration: line-through;
    margin-left: 8px;
}

/* ============================================
   RESPONSIVE DESIGN
============================================ */
@media only screen and (max-width: 768px) {
    .sh-product-card {
        border-radius: 10px !important;
    }
    
    .pr-outlined-button,
    button:contains("Add to Cart"),
    button[class*="add-to-cart"],
    button:contains("Buy Now"),
    button[class*="buy-now"],
    .sh-solid-button {
        padding: 10px 24px !important;
        font-size: 13px !important;
        border-radius: 25px !important;
    }
    
    .sh-category-card > a > div {
        padding: 20px 16px !important;
        border-radius: 14px !important;
        min-height: 120px;
    }
    
    .sh-category-card > a > div > img,
    .sh-category-card > a > div > svg,
    .sh-category-card > a > div > i {
        width: 40px !important;
        height: 40px !important;
        margin-bottom: 12px !important;
    }
    
    .sh-category-card > a > div > p {
        line-height: 24px;
        font-size: 16px;
        min-height: 48px;
        padding-left: 32px;
    }
    
    .sh-category-card > a > div > p::before {
        font-size: 20px;
    }
    
    .sh-category-card > a > div > span,
    .sh-category-card > a > div > .category-count {
        bottom: 12px;
        right: 12px;
        font-size: 11px;
        padding: 3px 10px;
    }
    
    .sh-product-plus-minus-button {
        width: 36px;
        height: 36px;
    }
    
    .sh-product-card-discount-tag {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media only screen and (max-width: 600px) {
    .sh-product-card {
        border-radius: 8px !important;
    }
    
    .pr-outlined-button,
    button:contains("Add to Cart"),
    button[class*="add-to-cart"],
    button:contains("Buy Now"),
    button[class*="buy-now"],
    .sh-solid-button {
        padding: 10px 20px !important;
        font-size: 12px !important;
        border-radius: 20px !important;
    }
    
    .sh-category-card > a > div {
        padding: 16px 14px !important;
        border-radius: 12px !important;
        min-height: 100px;
    }
    
    .sh-category-card > a > div > img,
    .sh-category-card > a > div > svg,
    .sh-category-card > a > div > i {
        width: 36px !important;
        height: 36px !important;
        margin-bottom: 10px !important;
    }
    
    .sh-category-card > a > div > p {
        line-height: 22px;
        font-size: 15px;
        min-height: 44px;
        padding-left: 28px;
    }
    
    .sh-category-card > a > div > p::before {
        font-size: 18px;
    }
    
    .sh-category-card > a > div > span,
    .sh-category-card > a > div > .category-count {
        bottom: 10px;
        right: 10px;
        font-size: 10px;
        padding: 2px 8px;
    }
    
    .sh-product-plus-minus-button {
        width: 32px;
        height: 32px;
    }
}

@media only screen and (max-width: 480px) {
    .pr-outlined-button,
    button:contains("Add to Cart"),
    button[class*="add-to-cart"],
    button:contains("Buy Now"),
    button[class*="buy-now"],
    .sh-solid-button {
        padding: 8px 16px !important;
        min-height: 44px !important;
        font-size: 14px !important;
    }
    
    .sh-category-card > a > div {
        padding: 14px 12px !important;
        min-height: 90px;
    }
    
    .sh-category-card > a > div > p {
        line-height: 20px;
        font-size: 14px;
        min-height: 40px;
        padding-left: 24px;
    }
    
    .sh-category-card > a > div > p::before {
        font-size: 16px;
    }
    
    .sh-product-plus-minus-button {
        width: 28px;
        height: 28px;
    }
}

/* ============================================
   MISC STYLES
============================================ */
.sh-row-title-divider {
    display: none !important;
}

.pr-long-card {
    padding: 0px;
}

.pr-card-content {
    padding: 16px 20px !important;
    background: #FFFFFF;
    border-radius: 0 0 12px 12px !important;
}

/* Header Styles */
.sh-header-main {
    background-color: #FFFFFF;
    color: #000000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Footer Styles */
.sh-footer-main {
    background: linear-gradient(135deg, #1F3A0F 0%, #2F5E2E 100%);
    color: #F9F9F9;
}
.sh-footer-main hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #D4AF37, transparent);
    margin: 16px 0;
}

/* Categories Container */
.sh-categories-container {
    background-color: #FFFFFF;
    padding: 16px 0;
}

/* Container for better spacing */
.sh-products-container {
    display: grid;
    gap: 20px;
    padding: 20px 0;
}

/* Product card shadow on hover */
.sh-product-card {
    box-shadow:
        0 4px 12px rgba(0,0,0,0.06),
        inset 0 0 0 1px rgba(255,255,255,0.6);
}

/* Category Container Grid */
.sh-categories-container {
    background: linear-gradient(135deg, #F9FDF9 0%, #FFFFFF 100%);
    padding: 30px 0;
    border-radius: 20px;
    margin: 20px 0;
}

.sh-categories-container .sh-row-title {
    font-size: 28px;
    font-weight: 800;
    color: #2F5E2E;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.sh-categories-container .sh-row-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2F5E2E, #4E8F4E);
    border-radius: 2px;
}