/*
Theme Name: DSC_WC
Theme URI: https://dhakasupplier.com/dsc_wc
Author: Your Name
Author URI: https://dhakasupplier.com/
Description: Modern WooCommerce Theme for DSC
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dsc_wc
*/

/* ==========================================================
   1. ROOT VARIABLES
========================================================== */

:root {

    --primary: #2563eb;
    --primary-hover: #1d4ed8;

    --secondary: #0f172a;

    --success: #16a34a;
    --danger: #dc2626;
    --warning: #f59e0b;

    --text: #1e293b;
    --muted: #64748b;

    --bg: #f8fafc;
    --white: #ffffff;

    --border: #e2e8f0;

    --shadow-sm: 0 2px 6px rgba(0,0,0,0.04);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);

    --radius: 14px;

    --transition: all 0.25s ease;
}

/* ==========================================================
   2. RESET
========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    margin: 0;
    padding: 0;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;

    background: var(--bg);
    color: var(--text);

    font-size: 16px;
    line-height: 1.7;

    overflow-x: hidden;
}

/* ==========================================================
   3. TYPOGRAPHY
========================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {

    margin-top: 0;

    color: var(--secondary);
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-top: 0;
    color: var(--muted);
}

a {

    text-decoration: none;
    color: var(--primary);

    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

img {

    max-width: 100%;
    display: block;
    height: auto;
}

/* ==========================================================
   4. LAYOUT
========================================================== */

.container {

    width: min(92%, 1320px);
    margin-inline: auto;
}

.site-main {
    padding: 70px 0;
}

/* ==========================================================
   5. HEADER
========================================================== */

.site-header {

    position: sticky;
    top: 0;
    z-index: 999;

    background: rgba(255,255,255,0.85);

    backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(255,255,255,0.4);

    box-shadow: var(--shadow-sm);
}

.site-header-inner {

    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 80px;
}

.logo a {

    font-size: 1.6rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.header-navigation-wrapper {

    display: flex;
    align-items: center;
    gap: 40px;
}

.main-navigation ul {

    list-style: none;

    display: flex;
    align-items: center;
    gap: 28px;

    margin: 0;
    padding: 0;
}

.main-navigation li a {

    color: var(--secondary);

    font-weight: 600;
    font-size: 0.96rem;

    position: relative;
}

.main-navigation li a::after {

    content: "";

    position: absolute;
    left: 0;
    bottom: -6px;

    width: 0;
    height: 2px;

    background: var(--primary);

    transition: var(--transition);
}

.main-navigation li a:hover::after {
    width: 100%;
}

/* ==========================================================
   6. HEADER CART
========================================================== */

.header-cart a {

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px 18px;

    border-radius: 999px;

    background: var(--secondary);
    color: var(--white);

    font-size: 0.9rem;
    font-weight: 600;

    transition: var(--transition);
}

.header-cart a:hover {

    background: var(--primary);

    transform: translateY(-2px);
}

.cart-contents-count {

    width: 24px;
    height: 24px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--warning);
    color: var(--secondary);

    font-size: 0.75rem;
    font-weight: 700;
}

/* ==========================================================
   7. HERO SECTION
========================================================== */

.hero-banner {

    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #2563eb 0%,
            #1e3a8a 100%
        );

    color: var(--white);

    padding: 120px 20px;

    border-radius: 28px;

    text-align: center;

    margin-bottom: 80px;

    box-shadow: var(--shadow-lg);
}

.hero-banner::before {

    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at top right,
            rgba(255,255,255,0.2),
            transparent 30%
        );
}

.hero-banner h1 {

    color: var(--white);

    margin-bottom: 20px;

    position: relative;
    z-index: 2;
}

.hero-banner p {

    color: rgba(255,255,255,0.85);

    max-width: 720px;

    margin-inline: auto;
    margin-bottom: 35px;

    font-size: 1.1rem;

    position: relative;
    z-index: 2;
}

/* ==========================================================
   8. BUTTONS
========================================================== */

.btn,
.button,
button,
input[type="submit"] {

    border: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 14px 26px;

    border-radius: 999px;

    background: var(--primary);
    color: var(--white) !important;

    font-weight: 600;

    cursor: pointer;

    transition: var(--transition);
}

.btn:hover,
.button:hover,
button:hover,
input[type="submit"]:hover {

    background: var(--primary-hover);

    transform: translateY(-2px);

    box-shadow: var(--shadow-md);
}

/* ==========================================================
   9. SHOP SIDEBAR
========================================================== */

.shop-categories-list .nav-link {

    display: flex;
    align-items: center;

    padding: 12px 16px;

    border-radius: 10px;

    color: var(--text);

    transition: var(--transition);
}

.shop-categories-list .nav-link:hover {

    background: rgba(37,99,235,0.08);

    color: var(--primary);

    transform: translateX(4px);
}

.shop-categories-list .active-cat {

    background: var(--primary);
    color: var(--white) !important;

    font-weight: 600;
}

/* ==========================================================
   10. WOOCOMMERCE GRID
========================================================== */

.woocommerce-container {
    padding-top: 30px;
}

.col-lg-10 ul.products {

    display: grid !important;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 28px !important;

    list-style: none;

    padding: 0;
    margin: 0;
}

/* ==========================================================
   11. PRODUCT CARD
========================================================== */

ul.products li.product {

    position: relative;

    overflow: hidden;

    background: var(--white) !important;

    border: 1px solid var(--border) !important;

    border-radius: 22px !important;

    padding: 0 !important;

    box-shadow: var(--shadow-sm);

    transition: var(--transition);
}

ul.products li.product:hover {

    transform: translateY(-8px);

    box-shadow: var(--shadow-lg);
}

.custom-shop-card {
    height: 100%;
}

/* ==========================================================
   12. PRODUCT IMAGE
========================================================== */

.product-image-container {

    position: relative;

    height: 280px;

    padding: 25px;

    background: linear-gradient(
        to bottom,
        #f8fafc,
        #ffffff
    );

    overflow: hidden;
}

.product-image-container img {

    width: 100%;
    height: 100%;

    object-fit: contain;

    transition: transform 0.4s ease;
}

ul.products li.product:hover
.product-image-container img {

    transform: scale(1.06);
}

/* ==========================================================
   13. PRODUCT CONTENT
========================================================== */

.custom-shop-card .woocommerce-loop-product__title {

    font-size: 1rem !important;

    line-height: 1.5 !important;

    font-weight: 700 !important;

    color: var(--secondary);

    margin-bottom: 12px !important;

    min-height: 50px;

    display: -webkit-box;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.custom-shop-card .price {

    display: flex;
    align-items: center;
    gap: 10px;

    flex-wrap: wrap;

    margin-bottom: 18px !important;

    font-size: 1.2rem !important;

    font-weight: 800 !important;

    color: var(--success) !important;
}

.custom-shop-card .price del {

    color: var(--muted) !important;

    font-size: 0.95rem !important;

    font-weight: 500 !important;
}

.custom-shop-card .price ins {
    text-decoration: none !important;
}

/* ==========================================================
   14. SALE BADGE
========================================================== */

.custom-shop-card span.onsale {

    position: absolute !important;

    top: 18px !important;
    left: 18px !important;

    z-index: 5;

    min-height: auto !important;
    min-width: auto !important;

    padding: 8px 14px !important;

    border-radius: 999px !important;

    background: var(--danger) !important;

    color: var(--white) !important;

    font-size: 0.72rem !important;

    font-weight: 700 !important;

    text-transform: uppercase;

    letter-spacing: 0.4px;
}

/* ==========================================================
   15. STAR RATING
========================================================== */

.custom-shop-card .star-rating {

    color: var(--warning) !important;

    margin-bottom: 12px !important;

    font-size: 0.88rem !important;
}

/* ==========================================================
   16. SINGLE PRODUCT PAGE
========================================================== */

.single-product-layout .product_title {

    font-size: clamp(2rem, 5vw, 3rem) !important;

    margin-bottom: 20px !important;
}

.single-product-layout .summary .price {

    font-size: 2rem !important;

    color: var(--success) !important;

    font-weight: 800 !important;

    margin-bottom: 25px !important;
}

.product-gallery-wrapper
.woocommerce-product-gallery__wrapper {

    border-radius: 24px;

    overflow: hidden;

    background: var(--white);

    border: 1px solid var(--border);

    box-shadow: var(--shadow-sm);
}

.single-product-layout .quantity .qty {

    width: 80px !important;

    height: 50px !important;

    border-radius: 10px !important;

    border: 1px solid var(--border) !important;

    font-size: 1rem;

    text-align: center;
}

.single-product-layout
button.single_add_to_cart_button {

    background: var(--primary) !important;

    padding: 14px 28px !important;

    border-radius: 12px !important;

    font-size: 1rem !important;

    font-weight: 700 !important;
}

/* ==========================================================
   17. TABS
========================================================== */

.single-product-layout ul.tabs {

    display: flex !important;

    gap: 12px;

    padding: 0 !important;

    margin-bottom: 30px !important;

    border: none !important;

    list-style: none !important;
}

.single-product-layout ul.tabs li {

    border: none !important;

    background: transparent !important;

    margin: 0 !important;
}

.single-product-layout ul.tabs li a {

    display: inline-block;

    padding: 12px 22px;

    border-radius: 999px;

    background: #eef2ff;

    color: var(--secondary);

    font-weight: 600;
}

.single-product-layout ul.tabs li.active a {

    background: var(--primary);

    color: var(--white);
}

/* ==========================================================
   18. SORTING + FILTER
========================================================== */

.woo-result-count-ordering {

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    margin-bottom: 30px;

    flex-wrap: wrap;
}

.woocommerce-ordering select {

    padding: 12px 16px;

    border-radius: 12px;

    border: 1px solid var(--border);

    background: var(--white);

    font-size: 0.95rem;
}

/* ==========================================================
   19. FOOTER
========================================================== */

.site-footer {

    margin-top: 100px;

    background: var(--secondary);

    color: rgba(255,255,255,0.7);

    padding: 80px 0 40px;

    position: relative;
}

.site-footer::before {

    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 1px;

    background:
        linear-gradient(
            to right,
            transparent,
            rgba(255,255,255,0.3),
            transparent
        );
}

.site-footer p {
    margin: 0;
}

/* ==========================================================
   20. UTILITIES
========================================================== */

.text-center {
    text-align: center;
}

.rounded {
    border-radius: var(--radius);
}

.shadow {
    box-shadow: var(--shadow-md);
}

/* ==========================================================
   21. RESPONSIVE DESIGN
========================================================== */

@media (max-width: 1200px) {

    .col-lg-10 ul.products {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {

    .site-header-inner {

        flex-direction: column;

        gap: 18px;

        padding: 18px 0;
    }

    .header-navigation-wrapper {

        flex-direction: column;

        gap: 18px;
    }

    .col-lg-10 ul.products {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .hero-banner {
        padding: 90px 25px;
    }
}

@media (max-width: 768px) {

    .main-navigation ul {

        flex-wrap: wrap;

        justify-content: center;
    }

    .woo-result-count-ordering {

        flex-direction: column;
        align-items: stretch;
    }

    .single-product-layout ul.tabs {

        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {

    .col-lg-10 ul.products {

        grid-template-columns: 1fr;
    }

    .hero-banner {

        padding: 70px 20px;

        border-radius: 18px;
    }

    .product-image-container {

        height: 240px;
    }

    .site-main {
        padding: 50px 0;
    }
}

.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
    width: auto !important;
}

.cart-contents{
    background-color: white !important;
}

.custom-logo {
    width: 60px !important;
    border-radius: 25% !important;
}

.woocommerce ul.products li.product a img
{
    width: 200px !important;
    margin:auto;
}

.woocommerce ul.products li.product .onsale{
    width: 80px !important;
    height: 40px !important;
}



