/*
Theme Name: Dr Fida Ahmed
Author: Jansher Ameer
Author URI: https://jansherameer.online/
Description: Custom theme made by Jansher Ameer for Dr Fida Ahmed.
Version: 1.0.0
*/

@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom Styles */
body {
    font-family: 'Inter', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
}

/* Hide Unwanted Elementor Footer (User Request) */
/* This ensures the custom footer is the only one visible */
div[data-elementor-type="wp-post"].elementor,
.elementor-type-footer,
.elementor-location-footer {
    display: none !important;
}

/* Yellow Navbar Contrast Mode */
#main-nav.nav-yellow-contrast {
    background-color: #D4AF37 !important;
    /* brand-accent */
    color: #000000 !important;
    border-color: #D4AF37 !important;
    /* Yellow border to match or outline */
}

/* Add to Cart button */
.single_add_to_cart_button {
    padding: 14px 32px;
    background: #6B1E1E;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.single_add_to_cart_button:hover {
    background: #C9A24D;
}

/* Price */
.woocommerce-Price-amount {
    font-size: 28px;
    font-weight: 700;
    color: #6B1E1E;
}

/* ----------------------------
   Product Card Buttons Styling
---------------------------- */
.drf-loop-buttons {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.drf-loop-buttons a,
.drf-loop-buttons .add_to_cart_button {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    border-radius: 4px;
    text-decoration: none;
    transition: 0.3s ease;
}

/* View Details Button */
.drf-view-details {
    background: #111;
    color: #fff;
}
.drf-view-details:hover {
    background: #333;
}

/* Add to Cart Button */
.add_to_cart_button {
    background: #2ecc71 !important;
    color: #fff !important;
    border: none !important;
}
.add_to_cart_button:hover {
    background: #27ae60 !important;
}

/* Quick Checkout / Buy Now */
.drf-quick-checkout {
    background: #e67e22;
    color: #fff;
}
.drf-quick-checkout:hover {
    background: #d35400;
}

/* Product card spacing */
ul.products li.product {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Slider Dots */
.slider-dots .dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dots .dot.active {
    background: #D4AF37;
    transform: scale(1.2);
}

/* ----------------------------
   Single Product Layout
---------------------------- */
.drf-single-product-container {
    display: flex;
    gap: 40px;
    margin: 40px auto;
    width: 90%;
    flex-wrap: wrap; /* Responsive for mobile */
}

.drf-product-images {
    width: 50%;
}

.drf-product-summary {
    width: 50%;
}

@media screen and (max-width: 768px) {
    .drf-product-images,
    .drf-product-summary {
        width: 100%;
    }
}

/* Buttons under summary */
.drf-single-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.drf-single-buttons .single_add_to_cart_button,
.drf-single-buttons .drf-quick-checkout {
    flex: 1;
    text-align: center;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 16px;
    text-decoration: none;
    transition: 0.3s ease;
}

/* Add to Cart button style */
.drf-single-buttons .single_add_to_cart_button {
    background: #2ecc71;
    color: #fff;
    border: none;
}
.drf-single-buttons .single_add_to_cart_button:hover {
    background: #27ae60;
}

/* Quick Checkout / Buy Now style */
.drf-single-buttons .drf-quick-checkout {
    background: #e67e22;
    color: #fff;
}
.drf-single-buttons .drf-quick-checkout:hover {
    background: #d35400;
}
/* ----------------------------
   Shop Page / Product Card Grid
---------------------------- */
.drf-shop-page-container {
    width: 90%;
    margin: 40px auto;
}

.drf-shop-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

ul.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    list-style: none;
    padding: 0;
}

/* Tablet */
@media screen and (max-width: 992px) {
    ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media screen and (max-width: 768px) {
    ul.products {
        grid-template-columns: 1fr;
    }
}

.drf-product-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #eee;
    padding: 15px;
    transition: 0.3s ease;
}

.drf-product-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Buttons appear on hover */
.drf-product-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s ease;
}

.drf-product-card:hover .drf-product-buttons {
    opacity: 1;
    transform: translateY(0);
}

/* Buttons style */
.drf-product-buttons a,
.drf-product-buttons .add_to_cart_button {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    border-radius: 4px;
    text-decoration: none;
    transition: 0.3s ease;
}

/* View Details Button */
.drf-view-details {
    background: #111;
    color: #fff;
}
.drf-view-details:hover {
    background: #333;
}

/* Add to Cart Button */
.add_to_cart_button {
    background: #2ecc71 !important;
    color: #fff !important;
    border: none !important;
}
.add_to_cart_button:hover {
    background: #27ae60 !important;
}

/* Quick Checkout / Buy Now */
.drf-quick-checkout {
    background: #e67e22;
    color: #fff;
}
.drf-quick-checkout:hover {
    background: #d35400;
}

/* Product Title */
.drf-product-title {
    font-size: 18px;
    margin: 10px 0;
    text-align: center;
}

/* ----------------------------
   Single Product Page Layout
---------------------------- */
.drf-single-product {
    display: flex;
    gap: 40px;
    width: 90%;
    margin: 40px auto;
    flex-wrap: wrap;
}

/* Product Images */
.drf-product-images {
    width: 50%;
}

.drf-product-summary {
    width: 50%;
}

/* Responsive for tablets & mobile */
@media screen and (max-width: 992px) {
    .drf-product-images,
    .drf-product-summary {
        width: 100%;
    }
}

/* Product Title */
.drf-product-title {
    font-size: 28px;
    margin-bottom: 10px;
}

/* Price */
.drf-product-price {
    font-size: 22px;
    color: #27ae60;
    margin-bottom: 15px;
}

/* Short Description */
.drf-product-excerpt {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Buttons */
.drf-single-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.drf-single-buttons .single_add_to_cart_button,
.drf-single-buttons .drf-quick-checkout {
    flex: 1;
    text-align: center;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s ease;
}

/* Add to Cart */
.drf-single-buttons .single_add_to_cart_button {
    background: #2ecc71;
    color: #fff;
    border: none;
}
.drf-single-buttons .single_add_to_cart_button:hover {
    background: #27ae60;
}

/* Buy Now */
.drf-single-buttons .drf-quick-checkout {
    background: #e67e22;
    color: #fff;
}
.drf-single-buttons .drf-quick-checkout:hover {
    background: #d35400;
}

/* Product Meta & Sharing */
.drf-product-meta {
    margin-top: 20px;
    font-size: 14px;
    color: #777;
}

/* ----------------------------
   Single Product Short Description
---------------------------- */
.drf-product-short-description {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin: 20px 0;
    background: #f9f9f9;       /* subtle background */
    border-left: 4px solid #2ecc71; /* accent line */
    padding: 15px 20px;
    border-radius: 6px;
}

/* Optional: responsive */
@media screen and (max-width: 768px) {
    .drf-product-short-description {
        font-size: 15px;
        padding: 12px 15px;
    }
}

/* Container */
.drf-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Hero Section */
.drf-shop-hero {
    background: #f8f9fb;
    padding: 60px 0 40px;
    text-align: center;
}

.drf-shop-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.drf-shop-description {
    max-width: 650px;
    margin: auto;
    color: #666;
    font-size: 16px;
}

/* Toolbar */
.drf-shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
}

/* Product Grid */
.drf-shop-products ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 0;
    padding: 0;
}

.drf-shop-products ul.products li.product {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.drf-shop-products ul.products li.product:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* Product Image */
.woocommerce ul.products li.product img {
    border-radius: 12px;
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

/* Product Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
    min-height: 48px; /* keeps titles aligned */
}

/* Price */
.woocommerce ul.products li.product .price {
    font-size: 16px;
    color: #111;
    margin-bottom: 12px;
}

/* Add to cart button */
.woocommerce ul.products li.product .button {
    background: #111;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    transition: 0.3s;
    text-align: center;
}

.woocommerce ul.products li.product .button:hover {
    background: #333;
}

/* Pagination */
.drf-pagination {
    margin-top: 40px;
    text-align: center;
}

/* No Products */
.drf-no-products {
    text-align: center;
    padding: 60px 0;
}


