:root {
    /* PPC Variables */
    --ppc-bg: #ffffff;
    --ppc-line: #e9e9e9;
    --ppc-muted: #8a8a8a;
    --ppc-text: #222;
    --ppc-accent: #d8922b;
    --ppc-accent2: #c54b3c;
    --ppc-card: #fff;
    --ppc-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    /* Stronger shadow */
    --ppc-radius: 8px;
    --ppc-max: 1180px;
}

/* Main Container */
.ppc-container,
.ppc-archive-container,
.ppc-single-container,
.ppc-full-wrap {
    max-width: var(--ppc-max) !important;
    margin: 0 auto !important;
    /*padding: 40px 20px !important;*/
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ppc-text);
    width: 100% !important;
}

/* Force Light Mode Overrides */
.ppc-product-card,
.ppc-product-card * {
    box-sizing: border-box;
}

/* --- Single Product Layout (Exact Match) --- */
.ppc-full-wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 24px 18px 60px;
}

/* Topbar */
.topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.page-title {
    font-weight: 700;
    letter-spacing: .5px;
    font-size: 16px;
    text-transform: uppercase;
    color: #2a2a2a;
    margin-top: 2px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #777;
    font-size: 13px;
    white-space: nowrap;
}

.crumb-home {
    width: 14px;
    height: 14px;
    display: inline-block;
}

.breadcrumb span.sep {
    color: #bdbdbd;
}

/* Categories Grid */
.cats {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr 1fr;
    gap: 18px;
    margin-top: 10px;
    margin-bottom: 26px;
}

.cat {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: var(--shadow);
    padding: 14px 16px;
    min-height: 86px;
    position: relative;
}

.cat h3 {
    margin: 0 0 10px 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #333;
    font-weight: 700;
}

.cat h3::after {
    content: "";
    display: block;
    height: 2px;
    width: 110px;
    background: rgba(216, 146, 43, .55);
    margin-top: 8px;
}

.cat a {
    display: block;
    text-decoration: none;
    font-size: 13px;
    margin: 7px 0;
    color: #4b4b4b;
}

.cat a.active {
    color: var(--accent);
    font-weight: 700;
}

/* Single Product Card */
.product-card {
    margin-top: 10px !important;
    border: 1px solid var(--ppc-line) !important;
    border-radius: 6px !important;
    box-shadow: var(--ppc-shadow) !important;
    background: #fff !important;
    padding: 30px !important;
    /* increased padding */
    width: 100% !important;
}

.product-inner {
    display: grid !important;
    grid-template-columns: 340px 1fr !important;
    gap: 40px !important;
    align-items: center !important;
    padding: 10px !important;
}

.product-image {
    width: 100%;
    aspect-ratio: 1/1.05;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Contain usually better for products */
    display: block;
}

.p-title {
    margin: 0 0 10px 0;
    color: var(--accent);
    font-weight: 800;
    font-size: 15px;
    text-align: left;
    /* Example had center but responsive had left, usually left is safer */
}

/* Force center if desktop width per example style */
@media(min-width: 981px) {

    /*  .p-title {
        text-align: center;
    }
*/
    .p-desc {
        text-align: left;
    }
}

.p-desc {
    color: #666;
    font-size: 13px;
    line-height: 1.55;
    margin: 0 0 14px 0;
    text-align: left;
}

.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 34px;
    margin-top: 6px;
}

.feature {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 10px;
    align-items: start;
}

.ico {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ico.red {
    color: var(--accent2);
}

.ico.orange {
    color: var(--accent);
}

.feature b {
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
    color: #4a4a4a;
    font-weight: 700;
}

.feature span {
    display: block;
    font-size: 13px;
    color: #7a7a7a;
    line-height: 1.35;
}

.btnbar {
    margin-top: 16px;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
}

.btn {
    width: 100%;
    background: #2b2b2b;
    color: #fff;
    border: none;
    padding: 14px 14px;
    font-size: 14px;
    letter-spacing: .2px;
    cursor: pointer;
    font-weight: 600;
    text-transform: none;
    transition: background 0.2s;
}

.btn:hover {
    background: #000;
}

/* SVG Utility */
.ico svg,
.crumb-home {
    display: block;
}

/* Responsive */
@media (max-width: 980px) {

    .ppc-container,
    .ppc-full-wrap {
        /*padding: 20px 15px !important;*/
    }

    .cats {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }

    .product-card {
        padding: 20px !important;
    }

    .product-inner {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .product-image {
        aspect-ratio: auto !important;
        height: auto !important;
        max-height: 400px !important;
    }

    .p-title {
        text-align: center !important;
        font-size: 22px !important;
    }

    .p-desc {
        text-align: center !important;
    }

    .features {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .feature {
        display: flex !important;
        /* Better than grid for small rows */
        align-items: center !important;
    }

    .btnbar {
        margin-top: 25px !important;
    }
}

@media (max-width: 520px) {
    .cats {
        grid-template-columns: 1fr !important;
    }

    .breadcrumb {
        white-space: normal !important;
        flex-wrap: wrap !important;
        line-height: 1.5 !important;
    }

    .topbar {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .page-title {
        font-size: 18px !important;
    }
}

/* --- Controls & Filter --- */
.ppc-filters {
    margin-bottom: 50px;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    color: #111;
}

.ppc-filters select,
.ppc-filters input[type="text"] {
    border: none !important;
    border-bottom: 1px solid #ddd !important;
    padding: 10px 0 !important;
    font-size: 14px !important;
    color: #111 !important;
    background: transparent !important;
    border-radius: 0 !important;
    min-width: 150px;
    box-shadow: none !important;
}

.ppc-filters select:focus,
.ppc-filters input:focus {
    outline: none !important;
    border-bottom-color: #000 !important;
}

.ppc-button {
    background: transparent !important;
    border: 1px solid #111 !important;
    color: #111 !important;
    padding: 8px 24px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.ppc-button:hover {
    background: #111 !important;
    color: #fff !important;
}

/* --- Card Grid --- */
.ppc-products-wrapper.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* --- Product Card (Image Overlay Style) --- */
body .ppc-product-card {
    display: block !important;
    text-decoration: none !important;
    position: relative !important;
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    transition: transform 0.4s ease, box-shadow 0.4s ease !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1) !important;
}

body .ppc-product-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2) !important;
}

/* Image Wrapper */
body .ppc-card-image-wrapper {
    position: relative !important;
    width: 100% !important;
    padding-top: 100% !important;
    /* Default 1:1, can be overridden by ratio classes */
    margin: 0 !important;
    overflow: hidden !important;
    background: #f0f0f0 !important;
}

/* Adjust wrapper based on classes if printed */
body .ppc-card-image-wrapper.aspect-4-3 {
    padding-top: 75% !important;
}

body .ppc-card-image-wrapper.aspect-16-9 {
    padding-top: 56.25% !important;
}

body .ppc-card-image-wrapper img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    display: block !important;
}

body .ppc-product-card:hover .ppc-card-image-wrapper img {
    transform: scale(1.08) !important;
}

/* Gradient Overlay */
body .ppc-card-gradient {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 80% !important;
    /* Higher gradient for safety */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0) 100%) !important;
    pointer-events: none !important;
    z-index: 10 !important;
    transition: opacity 0.3s !important;
}

/* Text Content Overlay (Centered Hero Style) */
body .ppc-card-content-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 20px !important;
    z-index: 20 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    /* Center Vertical */
    align-items: center !important;
    /* Center Horizontal */
    text-align: center !important;
    background: rgba(0, 0, 0, 0.2) !important;
    /* Slight overall dim */
    transition: background 0.3s ease !important;
}

body .ppc-product-card:hover .ppc-card-content-overlay {
    background: rgba(0, 0, 0, 0.4) !important;
    /* Darker on hover */
}

/* Lift text on hover */
body .ppc-product-card:hover .ppc-card-content-overlay {
    transform: translateY(-5px) !important;
}

body .ppc-card-category {
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    color: #fff !important;
    margin-bottom: 15px !important;
    font-weight: 700 !important;
    display: block !important;
    opacity: 0.9 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

body .ppc-card-title {
    font-size: 28px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    /* Optional: if they want ALL CAPS like reference */
    color: #fff !important;
    margin: 0 !important;
    line-height: 1.1 !important;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    transform: scale(1) !important;
    transition: transform 0.3s ease !important;
}

body .ppc-product-card:hover .ppc-card-title {
    transform: scale(1.05) !important;
}

/* Floating Action Button */
body .ppc-card-actions {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 5 !important;
}

body .ppc-action-btn {
    width: 44px !important;
    height: 44px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    transition: all 0.3s !important;
}

body .ppc-action-btn:hover {
    background: #fff !important;
    color: #000 !important;
    transform: rotate(-45deg) !important;
    /* Nice interaction */
}

body .ppc-action-btn .dashicons {
    font-size: 20px !important;
    line-height: 20px !important;
}


/* --- Single Product Page (Redesign) --- */
/* --- Single Product Layout (Exact Match) --- */
.ppc-full-wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 24px 18px 60px;
}

/* Topbar */
.topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.page-title {
    font-weight: 700;
    letter-spacing: .5px;
    font-size: 16px;
    text-transform: uppercase;
    color: #2a2a2a;
    margin-top: 2px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #777;
    font-size: 13px;
    white-space: nowrap;
}

.crumb-home {
    width: 14px;
    height: 14px;
    display: inline-block;
}

.breadcrumb span.sep {
    color: #bdbdbd;
}

/* Categories Grid */
.cats {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr 1fr;
    gap: 18px;
    margin-top: 10px;
    margin-bottom: 26px;
}

.cat {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: var(--shadow);
    padding: 14px 16px;
    min-height: 86px;
    position: relative;
}

.cat h3 {
    margin: 0 0 10px 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #333;
    font-weight: 700;
}

.cat h3::after {
    content: "";
    display: block;
    height: 2px;
    width: 110px;
    background: rgba(216, 146, 43, .55);
    margin-top: 8px;
}

.cat a {
    display: block;
    text-decoration: none;
    font-size: 13px;
    margin: 7px 0;
    color: #4b4b4b;
}

.cat a.active {
    color: var(--accent);
    font-weight: 700;
}

/* Single Product Card */
.product-card {
    margin-top: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: var(--shadow);
    background: #fff;
    padding: 18px;
}

.product-inner {
    display: grid;
    grid-template-columns: 340px 1fr;
    /* Fixed width image as per design */
    gap: 26px;
    align-items: center;
    padding: 6px 6px 14px;
}

.product-image {
    width: 100%;
    aspect-ratio: 1/1.05;
    border: 1px solid var(--line);
    border-radius: 4px;
      /* arka plan beyaz oldu ancak beyaz ürünlerde ne olacak? */
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Contain usually better for products */
    display: block;
}

.p-title {
    margin: 0 0 10px 0;
    color: var(--accent);
    font-weight: 800;
    font-size: 15px;
    text-align: left;
    /* Example had center but responsive had left, usually left is safer */
}

/* Force center if desktop width per example style */
@media(min-width: 981px) {

    /*   .p-title {
        text-align: center;
    }
 */
    .p-desc {
        text-align: left;
    }
}

.p-desc {
    color: #666;
    font-size: 13px;
    line-height: 1.55;
    margin: 0 0 14px 0;
    text-align: left;
}

.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 34px;
    margin-top: 6px;
}

.feature {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 10px;
    align-items: start;
}

.ico {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ico.red {
    color: var(--accent2);
}

.ico.orange {
    color: var(--accent);
}

.feature b {
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
    color: #4a4a4a;
    font-weight: 700;
}

.feature span {
    display: block;
    font-size: 13px;
    color: #7a7a7a;
    line-height: 1.35;
}

.btnbar {
    margin-top: 16px;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
}

.btn {
    width: 100%;
    background: #2b2b2b;
    color: #fff;
    border: none;
    padding: 14px 14px;
    font-size: 14px;
    letter-spacing: .2px;
    cursor: pointer;
    font-weight: 600;
    text-transform: none;
    transition: background 0.2s;
}

.btn:hover {
    background: #000;
}

/* SVG Utility */
.ico svg,
.crumb-home {
    display: block;
}

/* Responsive */
@media (max-width: 980px) {
    .cats {
        grid-template-columns: 1fr 1fr;
    }

    .product-inner {
        grid-template-columns: 1fr;
    }

    .p-title {
        text-align: left;
    }

    .features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .cats {
        grid-template-columns: 1fr;
    }

    .breadcrumb {
        white-space: normal;
        flex-wrap: wrap;
    }
}

/* Enforce Light Mode even if System is Dark */
@media (prefers-color-scheme: dark) {

    /* We handle colors explicitly above, these are just fallbacks */
    body .ppc-card-title {
        color: #fff !important;
    }

    body .ppc-card-category {
        color: rgba(255, 255, 255, 0.8) !important;
    }
}
