/**
 * DoitPageBuilder - Frontend Minimalist Stylesheet
 * PrestaShop 9.2+ Compatible
 */

/* ==================== CORE GRID & LAYOUT ==================== */
.dp-builder-wrap {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #111827;
    -webkit-font-smoothing: antialiased;
}

.dp-builder-wrap *,
.dp-builder-wrap *::before,
.dp-builder-wrap *::after {
    box-sizing: border-box;
}

.dp-section {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.dp-section-boxed > .dp-container {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.dp-section-fullwidth > .dp-container {
    max-width: 100%;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.dp-section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.dp-section > .dp-container {
    position: relative;
    z-index: 2;
}

.dp-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.dp-col {
    position: relative;
    padding-left: 15px;
    padding-right: 15px;
    min-height: 1px;
    display: flex;
    flex-direction: column;
}

.dp-col-100 { flex: 0 0 100%; max-width: 100%; }
.dp-col-66  { flex: 0 0 66.666667%; max-width: 66.666667%; }
.dp-col-50  { flex: 0 0 50%; max-width: 50%; }
.dp-col-33  { flex: 0 0 33.333333%; max-width: 33.333333%; }
.dp-col-25  { flex: 0 0 25%; max-width: 25%; }
.dp-col-20  { flex: 0 0 20%; max-width: 20%; }

.dp-column-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dp-widget {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}
.dp-widget:last-child {
    margin-bottom: 0;
}

/* ==================== BUTTONS ==================== */
.dp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    padding: 14px 26px;
    border-radius: 4px;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
}

.dp-btn-primary {
    background-color: #111827;
    color: #ffffff !important;
    border-color: #111827;
}
.dp-btn-primary:hover {
    background-color: #2e3544;
    border-color: #2e3544;
    transform: translateY(-1px);
}

.dp-btn-outline {
    background-color: transparent;
    color: #111827 !important;
    border-color: #d1d5db;
}
.dp-btn-outline:hover {
    border-color: #111827;
    background-color: #f9fafb;
}

.dp-btn-light {
    background-color: #ffffff;
    color: #111827 !important;
}
.dp-btn-light:hover {
    background-color: #f3f4f6;
    transform: translateY(-1px);
}

/* ==================== PRODUCTS GRID ==================== */
.dp-products-grid {
    display: grid;
    gap: 28px;
    width: 100%;
}
.dp-grid-col-1 { grid-template-columns: 1fr; }
.dp-grid-col-2 { grid-template-columns: repeat(2, 1fr); }
.dp-grid-col-3 { grid-template-columns: repeat(3, 1fr); }
.dp-grid-col-4 { grid-template-columns: repeat(4, 1fr); }
.dp-grid-col-5 { grid-template-columns: repeat(5, 1fr); }
.dp-grid-col-6 { grid-template-columns: repeat(6, 1fr); }

.dp-product-card {
    background: #ffffff;
    border-radius: 6px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}
.dp-product-card:hover {
    transform: translateY(-3px);
}

.dp-product-thumb {
    position: relative;
    width: 100%;
    padding-top: 110%; /* 1:1.1 aspect ratio */
    overflow: hidden;
    background-color: #f6f5f3;
    border-radius: 6px;
}
.dp-product-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.dp-product-card:hover .dp-product-thumb img {
    transform: scale(1.04);
}

.dp-product-actions {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 3;
}
.dp-product-card:hover .dp-product-actions {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.dp-card-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    color: #111827;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
}
.dp-card-btn:hover {
    background: #111827;
    color: #ffffff;
}

.dp-product-info {
    padding: 16px 4px 0 4px;
}
.dp-product-title {
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 6px 0;
    line-height: 1.4;
}
.dp-product-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
}
.dp-product-title a:hover {
    color: #4b5563;
}
.dp-product-price {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

/* ==================== CATEGORIES GRID ==================== */
.dp-category-grid {
    display: grid;
    gap: 24px;
    width: 100%;
}
.dp-category-card {
    position: relative;
    height: 380px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 32px;
}
.dp-category-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.dp-category-card:hover .dp-category-image {
    transform: scale(1.05);
}
.dp-category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.65) 100%);
    transition: opacity 0.3s ease;
}
.dp-category-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
}
.dp-category-count {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.85;
    margin-bottom: 6px;
    display: block;
}
.dp-category-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 12px 0;
}
.dp-category-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    opacity: 0.9;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.dp-category-card:hover .dp-category-link {
    transform: translateX(4px);
    opacity: 1;
}

/* ==================== CALL TO ACTION ==================== */
.dp-cta-card {
    position: relative;
    border-radius: 12px;
    padding: 80px 40px;
    text-align: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
.dp-cta-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
}
.dp-cta-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border-radius: 30px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.dp-cta-title {
    font-size: 40px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 16px 0;
}
.dp-cta-desc {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0 0 32px 0;
}

/* ==================== ICON BOX ==================== */
.dp-icon-box {
    text-align: center;
    padding: 24px 16px;
}
.dp-icon-box-icon {
    margin-bottom: 16px;
    color: #111827;
    display: inline-flex;
}
.dp-icon-box-title {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #111827;
}
.dp-icon-box-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
}

/* ==================== COUNTDOWN ==================== */
.dp-countdown-wrapper {
    display: flex;
    justify-content: center;
    gap: 16px;
}
.dp-countdown-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    min-width: 72px;
    padding: 12px 8px;
    text-align: center;
}
.dp-countdown-num {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}
.dp-countdown-lbl {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==================== TESTIMONIALS ==================== */
.dp-testimonials-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.dp-testimonial-card {
    background: #ffffff;
    border: 1px solid #f3f4f6;
    padding: 36px 32px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.dp-testimonial-stars {
    color: #f59e0b;
    font-size: 16px;
    margin-bottom: 16px;
    letter-spacing: 2px;
}
.dp-testimonial-quote {
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
    font-style: italic;
    margin: 0 0 20px 0;
}
.dp-author-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}
.dp-author-role {
    font-size: 13px;
    color: #9ca3af;
}

/* ==================== ACCORDION ==================== */
.dp-accordion {
    border-top: 1px solid #e5e7eb;
}
.dp-accordion-item {
    border-bottom: 1px solid #e5e7eb;
}
.dp-accordion-header {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #111827;
    user-select: none;
}
.dp-accordion-arrow {
    transition: transform 0.25s ease;
}
.dp-accordion-item.dp-active .dp-accordion-arrow {
    transform: rotate(180deg);
}
.dp-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
}
.dp-accordion-item.dp-active .dp-accordion-body {
    max-height: 1000px;
    transition: max-height 0.5s ease-in-out;
}
.dp-accordion-content {
    padding-bottom: 24px;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.7;
}

/* ==================== TABS ==================== */
.dp-tabs-nav {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 24px;
    gap: 32px;
}
.dp-tab-btn {
    background: none;
    border: none;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    position: relative;
}
.dp-tab-btn.dp-active {
    color: #111827;
}
.dp-tab-btn.dp-active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #111827;
}
.dp-tab-panel {
    display: none;
}
.dp-tab-panel.dp-active {
    display: block;
    animation: dpFadeIn 0.3s ease;
}
@keyframes dpFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== NAVIGATION MENU ==================== */
.dp-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    gap: 36px;
}
.dp-nav-link {
    font-size: 15px;
    font-weight: 500;
    color: #111827;
    text-decoration: none;
    position: relative;
    padding: 6px 0;
    transition: color 0.2s ease;
}
.dp-nav-link:hover {
    color: #3b82f6;
}

/* ==================== SEARCH BAR ==================== */
.dp-search-form {
    position: relative;
    display: flex;
    align-items: center;
}
.dp-search-icon {
    position: absolute;
    left: 14px;
    color: #9ca3af;
    pointer-events: none;
    display: flex;
}
.dp-search-input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 14px;
    background: #f9fafb;
    outline: none;
    transition: all 0.2s ease;
}
.dp-search-input:focus {
    background: #ffffff;
    border-color: #111827;
}

/* ==================== MINI CART ==================== */
.dp-mini-cart {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.dp-cart-link {
    position: relative;
    color: #111827;
    text-decoration: none;
    display: flex;
    align-items: center;
}
.dp-cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #111827;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== NEWSLETTER ==================== */
.dp-newsletter-block {
    max-width: 540px;
    margin: 0 auto;
    text-align: center;
}
.dp-newsletter-title {
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 12px 0;
}
.dp-newsletter-desc {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 28px 0;
}
.dp-newsletter-form {
    display: flex;
    gap: 10px;
}
.dp-newsletter-input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 15px;
    outline: none;
}
.dp-newsletter-input:focus {
    border-color: #111827;
}

/* ==================== SOCIAL ICONS ==================== */
.dp-social-icons {
    display: flex;
    gap: 16px;
    align-items: center;
}
.dp-social-link {
    color: #9ca3af;
    transition: color 0.2s ease, transform 0.2s ease;
    display: flex;
}
.dp-social-link:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==================== RESPONSIVE RULES ==================== */
@media (max-width: 991px) {
    .dp-col-66, .dp-col-50, .dp-col-33, .dp-col-25 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .dp-grid-col-4, .dp-grid-col-5, .dp-grid-col-6 {
        grid-template-columns: repeat(2, 1fr);
    }
    .dp-category-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .dp-col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .dp-products-grid {
        grid-template-columns: 1fr;
    }
    .dp-newsletter-form {
        flex-direction: column;
    }
    .dp-cta-title {
        font-size: 28px;
    }
}

/* ==================== HOMEPAGE THEME OVERRIDE RESETS ==================== */
body#index #wrapper {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}
body#index #wrapper .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
}
body#index #content-wrapper {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}
body#index .dp-home-override {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

