/* ============================================
   DALOGLU DIGITAL - Global Site Styles
   WooCommerce + Elementor + Homepage
   ============================================ */

/* ---- GENERAL ---- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { transition: all 0.3s ease; }

img { max-width: 100%; height: auto; }

/* ---- HOMEPAGE SECTIONS ---- */

/* Category Cards Grid */
.dl-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.dl-category-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.dl-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e94560, #1a1a2e);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.dl-category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    border-color: transparent;
}

.dl-category-card:hover::before {
    transform: scaleX(1);
}

.dl-cat-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #f8f9fa, #e8e8e8);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.dl-cat-icon i {
    font-size: 28px;
    color: #1a1a2e;
    transition: all 0.3s ease;
}

.dl-category-card:hover .dl-cat-icon {
    background: linear-gradient(135deg, #e94560, #c73e54);
}

.dl-category-card:hover .dl-cat-icon i {
    color: #fff;
}

.dl-category-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #1a1a2e;
}

.dl-category-card p {
    font-size: 13px;
    color: #888;
    margin: 0;
    line-height: 1.4;
}

/* Why Daloglu Grid */
.dl-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

.dl-why-card {
    text-align: center;
    padding: 32px 20px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.dl-why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.dl-why-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #fff0f3, #fce4ec);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dl-why-icon i {
    font-size: 24px;
    color: #e94560;
}

.dl-why-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1a1a2e;
}

.dl-why-card p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Newsletter Form */
.dl-newsletter-form {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
    border-radius: 50px;
    overflow: hidden;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
}

.dl-nl-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 16px 24px;
    font-size: 14px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    outline: none;
}

.dl-nl-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.dl-nl-btn {
    background: #e94560;
    border: none;
    color: #fff;
    padding: 16px 32px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dl-nl-btn:hover {
    background: #c73e54;
}

/* ============================================
   WOOCOMMERCE STYLING
   ============================================ */

/* Product Grid */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
    content: none !important;
}

.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    padding: 0;
    float: none !important;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border-color: transparent;
}

/* Product Image */
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin: 0 !important;
    border-radius: 0;
}

/* Sale Badge */
.woocommerce span.onsale {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    background: #e94560 !important;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    padding: 6px 14px;
    border-radius: 50px;
    min-width: auto;
    min-height: auto;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Product Info */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
    font-size: 14px !important;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #1a1a2e;
    padding: 16px 16px 4px !important;
    margin: 0;
    line-height: 1.4;
}

/* Product Price */
.woocommerce ul.products li.product .price {
    color: #1a1a2e;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    padding: 0 16px;
    margin-bottom: 4px;
    display: block;
}

.woocommerce ul.products li.product .price del {
    color: #999;
    font-size: 13px;
    font-weight: 400;
    margin-right: 6px;
}

.woocommerce ul.products li.product .price ins {
    color: #e94560;
    font-weight: 700;
    text-decoration: none;
}

/* Add to Cart Button */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.add_to_cart_button {
    display: block;
    width: calc(100% - 32px);
    margin: 12px 16px 16px !important;
    padding: 10px 16px;
    background: #1a1a2e !important;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product a.add_to_cart_button:hover {
    background: #e94560 !important;
}

/* Single Product */
.woocommerce div.product .product_title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #1a1a2e;
    font-size: 28px;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
    font-family: 'Inter', sans-serif;
    font-size: 24px !important;
    font-weight: 700;
    color: #e94560;
}

.woocommerce div.product .single_add_to_cart_button {
    background: #e94560 !important;
    border-radius: 50px;
    padding: 14px 40px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    border: none;
    transition: all 0.3s ease;
}

.woocommerce div.product .single_add_to_cart_button:hover {
    background: #c73e54 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(233,69,96,0.3);
}

.woocommerce div.product .quantity .qty {
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    padding: 12px;
    font-family: 'Inter', sans-serif;
}

/* WooCommerce Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    border-bottom: 2px solid #e8e8e8;
    padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #999;
    padding: 12px 24px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: #1a1a2e;
    border-bottom-color: #e94560;
}

/* Cart & Checkout */
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-checkout #payment {
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    padding: 24px;
}

.woocommerce table.shop_table {
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
}

.woocommerce table.shop_table th {
    background: #f8f9fa;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.woocommerce a.checkout-button,
.woocommerce #place_order {
    background: #e94560 !important;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    padding: 14px 40px;
    border: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.woocommerce a.checkout-button:hover,
.woocommerce #place_order:hover {
    background: #c73e54 !important;
}

/* Breadcrumbs */
.woocommerce .woocommerce-breadcrumb {
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    color: #999;
    padding: 16px 0;
}

.woocommerce .woocommerce-breadcrumb a {
    color: #666;
    text-decoration: none;
}

.woocommerce .woocommerce-breadcrumb a:hover {
    color: #e94560;
}

/* Notices */
.woocommerce .woocommerce-message {
    border-top-color: #e94560;
    background: #fff0f3;
    border-radius: 8px;
}

.woocommerce .woocommerce-message::before {
    color: #e94560;
}

.woocommerce .woocommerce-info {
    border-top-color: #1a1a2e;
    border-radius: 8px;
}

/* Shop page */
.woocommerce .woocommerce-ordering select,
.woocommerce .woocommerce-result-count {
    font-family: 'Inter', sans-serif;
}

/* No product image placeholder */
.woocommerce ul.products li.product a img.woocommerce-placeholder {
    background: #f8f9fa;
    padding: 40px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .dl-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dl-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
    }

    .woocommerce ul.products li.product a img,
    .woocommerce ul.products li.product img {
        height: 160px;
    }

    .dl-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .dl-category-card {
        padding: 24px 16px;
    }

    .dl-why-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .dl-newsletter-form {
        flex-direction: column;
        border-radius: 12px;
    }

    .dl-nl-input {
        padding: 14px 20px;
        text-align: center;
    }

    .dl-nl-btn {
        border-radius: 0 0 10px 10px;
        padding: 14px 24px;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title,
    .woocommerce ul.products li.product h2 {
        font-size: 12px !important;
        padding: 12px 12px 2px !important;
    }

    .woocommerce ul.products li.product .price {
        font-size: 14px;
        padding: 0 12px;
    }

    .woocommerce ul.products li.product .button {
        margin: 8px 12px 12px !important;
        padding: 8px 12px;
        font-size: 12px;
    }

    .dl-categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .dl-category-card {
        padding: 20px 12px;
    }

    .dl-cat-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .dl-cat-icon i {
        font-size: 22px;
    }

    .dl-category-card h3 {
        font-size: 14px;
    }

    .dl-why-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ELEMENTOR CANVAS ADJUSTMENTS
   ============================================ */

.elementor-page .elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1280px;
}

.elementor-page .elementor-widget-shortcode .woocommerce ul.products {
    margin: 0;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: #e94560;
    color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}
