/* Base Styles */
:root {
    --primary: #ffcc00;
    --primary-hover: #e6b800;
    --text: #1a1a1a;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --bg: #ffffff;
    --bg-alt: #f9fafb;
    --bg-pill: #f3f4f6;
    --radius: 20px;
    --radius-sm: 8px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.5;
    font-size: 14px;
}

a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; font-size: inherit; }

.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 16px; height: 16px; }

.container { max-width: 1300px; margin: 0 auto; padding: 0 20px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary { background-color: var(--primary); color: #000; }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-1px); }

.icon-btn {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background-color: var(--bg-pill);
    color: var(--text);
    transition: background 0.2s;
}
.icon-btn:hover { background-color: var(--border); }

.text-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 13px;
}
.text-btn:hover { color: var(--text); }

/* Topbar */
.topbar {
    background-color: #fafbfb;
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    font-size: 12px;
}
.topbar-content { display: flex; justify-content: space-between; align-items: center; }
.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 20px;
    color: #4b5563;
}
.topbar-item i { color: #d97706; }

/* Header */
.header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 40;
}
.header-container { display: flex; align-items: center; justify-content: space-between; }

.logo { font-size: 28px; font-weight: 800; letter-spacing: -1px; }
.logo-print { color: var(--text); }
.logo-hub { position: relative; }
.logo-hub::after {
    content: "hub";
    position: absolute;
    left: 0;
    color: transparent;
    background: var(--primary);
    border-radius: 4px;
    padding: 0 4px;
    z-index: -1;
}

.main-nav { display: flex; gap: 24px; font-weight: 500; }
.nav-link { display: flex; align-items: center; gap: 4px; transition: color 0.2s; }
.nav-link:hover { color: #d97706; }

.search-bar {
    display: flex;
    align-items: center;
    background-color: var(--bg-pill);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    width: 300px;
}
.search-bar input {
    border: none; background: transparent; outline: none;
    width: 100%; margin-left: 8px; font-family: inherit; font-size: 14px;
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.account-btn { position: relative; }
.badge {
    position: absolute;
    top: -8px; right: -8px;
    background-color: #06b6d4;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    font-weight: bold;
}

/* Breadcrumb */
.breadcrumb { color: var(--text-muted); font-size: 12px; margin-top: 24px; margin-bottom: 32px; }

/* Page Title & Tabs */
.page-title { text-align: center; font-size: 32px; font-weight: 700; margin-bottom: 24px; }

.category-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
}
.tabs-container { display: flex; gap: 12px; }
.tab {
    padding: 10px 24px;
    background-color: var(--bg-pill);
    border-radius: var(--radius-full);
    font-weight: 500;
    color: var(--text);
    transition: background-color 0.2s;
}
.tab:hover { background-color: #e5e7eb; }
.tab.active { background-color: var(--primary); font-weight: 600; }
.nav-arrow { color: var(--primary); padding: 8px; }

/* Product Info Header */
.product-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.product-title { font-size: 24px; font-weight: 700; }
.product-badges { display: flex; gap: 8px; }
.badge-outline, .btn-tab-outline {
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s ease;
    background: transparent;
}
.btn-tab-outline:hover {
    border-color: var(--primary);
    color: var(--text);
    background: #fff;
}
.btn-tab-outline.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #000;
    font-weight: 600;
}
.product-desc { color: var(--text-muted); line-height: 1.6; margin-bottom: 40px; max-width: 800px; }

/* Grid Layout */
.product-grid {
    display: grid;
    grid-template-columns: 3fr 2fr 4fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 60px;
}

/* Gallery column */
.gallery { display: flex; flex-direction: column; gap: 12px; }
.main-image {
    aspect-ratio: 4/5; /* Portrait rectangle */
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
}
.main-image img { width: 100%; height: 100%; object-fit: cover; }

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: var(--text);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.2s;
}
.gallery-nav:hover { background: #fff; border-color: var(--primary); color: var(--primary); scale: 1.1; }
.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.thumbnails { display: flex; gap: 12px; }
.thumb {
    flex: 1;
    aspect-ratio: 1/1; /* Square thumbnails */
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: #fff;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--primary); }

/* Configurator column */
.configurator { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; gap: 12px; }
.form-group { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-size: 12px; font-weight: 500;
    display: flex; align-items: center; gap: 4px;
    color: var(--text);
}
.tooltip-icon { color: var(--primary); }
.form-select {
    width: 100%;
    padding: 12px 36px 12px 14px; /* More right padding for arrow */
    border: none;
    background-color: var(--bg-pill);
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2212%22%20height%3D%228%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M1.41%200L6%204.58L10.59%200L12%201.41L6%207.41L0%201.41L1.41%200Z%22%20fill%3D%22%23ffcc00%22%20%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 10px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.form-select:focus { outline: none; box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.4); }

/* Pricing Table column */
.pricing-table-container {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.table-header-custom { margin-bottom: 12px; }
.quantity-input {
    display: inline-flex;
    align-items: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 4px 12px;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}
.quantity-input input {
    width: 50px; border: none; outline: none;
    font-family: inherit; font-weight: 600; font-size: 14px; text-align: right;
}
.quantity-input i { color: var(--primary); }

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: center;
}
.pricing-table th, .pricing-table td {
    padding: 12px 8px;
    vertical-align: top;
    position: relative;
    border-bottom: 1px solid var(--border);
}
.pricing-table tbody tr { transition: background 0.1s; }
.pricing-table tbody tr.active-row { background: transparent; }
.pricing-table th { font-weight: 600; }

.col-qty { text-align: left; vertical-align: bottom; border-bottom: none!important; }
.col-qty span { display: none; }
.col-qty div small { color: var(--text-muted); }

.pricing-table td:first-child { text-align: left; font-weight: 600; vertical-align: middle; }

.col-std { background: #fef9c3; border-radius: 8px 8px 0 0; }
.col-std.active-col { background: #fef9c3; }

.active-cell {
    background-color: var(--primary) !important;
    color: #000;
    font-weight: 600;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 10;
}
.active-cell .price-per-unit, .active-cell .price-total { color: #000; }

.muted { color: var(--text-muted); }
.price-per-unit { font-weight: 700; margin-bottom: 2px; }
.price-total { color: var(--text-muted); font-size: 11px; }

/* ================================
   CART PILL SECTION
   ================================ */
.cart-section-wrapper {
    margin-bottom: 16px;
    padding-top: 8px;
}

.cart-pill {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: 999px;
    /* Grey background — shows through on the right side */
    background: #e4e4e4;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

/* WHITE WRAPPER: holds left + divider + mid all in white */
.cp-white {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 999px;        /* pill shape — right side curves over grey */
    flex: 2.5;                  /* Product + Table */
    z-index: 2;
    box-shadow: 10px 0 25px rgba(0,0,0,0.08); /* Curve shadow */
}

/* --- LEFT (inside white wrapper) --- */
.cp-left {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 20px 10px 24px;
    flex: 1.2;
}

.cp-thumb {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border);
    background: #f3f3f3;
}
.cp-thumb img { width: 100%; height: 100%; object-fit: cover; }

.cp-left-text { font-size: 12px; line-height: 1.55; }
.cp-product-name { color: var(--text); font-weight: 500; margin-bottom: 3px; }
.cp-delivery-text { color: var(--primary); font-size: 11px; font-weight: 500; }
.cp-delivery-text strong { font-weight: 700; }

/* --- SEPARATOR --- */
.cp-sep {
    width: 1px;
    background: var(--border);
    margin: 10px 0;
    flex-shrink: 0;
    z-index: 2;
}

/* --- MIDDLE (cost breakdown, white bg, seamless with left) --- */
.cp-mid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 10px 24px 10px 28px;
    flex: 1.3;
    font-size: 11px;
    color: var(--text-muted);
}

.cp-info-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}
.cp-info-row span:last-child {
    color: var(--text);
    font-weight: 500;
    white-space: nowrap;
}

.cp-badge {
    display: inline-block;
    border: 1px solid var(--primary);
    color: var(--text-muted);
    font-size: 9px;
    padding: 1px 6px;
    border-radius: 999px;
    margin-left: 4px;
    vertical-align: middle;
}

/* --- RIGHT (grey bg, price + button vertically) --- */
.cp-right {
    display: flex;
    flex-direction: column;     /* Stack price and button vertically */
    justify-content: center;
    padding: 10px 36px 10px 48px; /* Offset for curve on left, more space on right */
    flex: 1.5;                  /* Price + Button section */
    z-index: 1;
    gap: 8px;                   /* Tighter vertical space */
}

.cp-price-block {
    width: 100%;
    margin-bottom: 2px;
}

.cp-price-top-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 1px;
}
.cp-price-label { font-size: 13px; font-weight: 700; color: var(--text); }
.cp-price-main-val { font-size: 21px; font-weight: 800; color: var(--text); white-space: nowrap; }

.cp-price-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.cp-price-sub-label { font-size: 9px; color: var(--text-muted); line-height: 1; max-width: 130px; }
.cp-price-sub-val { font-size: 10px; color: var(--text-muted); white-space: nowrap; }

.cp-cart-btn { 
    width: 100%; 
    padding: 10px 0; 
    font-size: 13px; 
    font-weight: 600;
    letter-spacing: 0.1px;
}

/* --- BOTTOM ACTION LINKS --- */
.cp-actions {
    display: flex;
    justify-content: center;
    gap: 36px;
    margin-bottom: 48px;
}

/* ================================
   ACCORDION
   ================================ */
.accordion-section { 
    margin-bottom: 80px; 
    margin-top: 40px;
}

.accordion {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accordion-item {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid #f1f1f1;
}

.accordion-item.active {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: var(--primary);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.accordion-header:hover {
    background: rgba(0,0,0,0.01);
}

.accordion-header i {
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
    color: var(--primary);
}

.accordion-content-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.active .accordion-content-wrapper {
    grid-template-rows: 1fr;
}

.accordion-content {
    overflow: hidden;
}

.accordion-body {
    padding: 0 32px 32px 32px;
}

/* Termékleírás / Termékinformáció Content */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 20px;
}

.info-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.info-text {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 24px;
}

.benefits-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.benefit-tag {
    background: #fef9c3;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #854d0e;
}

.info-images-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.info-img-card {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1/1;
}

.info-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 60px;
}

.feature-img {
    border-radius: 100px;
    overflow: hidden;
    height: 300px;
}

.feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* Grafikasegédlet Content */
.guide-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    margin-top: 20px;
}

.template-section {
    margin-bottom: 30px;
}

.template-icons {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.template-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 60px;
}

.template-btn i {
    width: 40px;
    height: 40px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
}

.tech-specs {
    font-size: 13px;
    color: #4b5563;
}

.tech-specs p {
    margin-bottom: 8px;
}

.special-settings ul {
    list-style: none;
    padding-left: 0;
}

.special-settings li {
    padding-left: 14px;
    position: relative;
    margin-bottom: 8px;
    font-size: 13px;
}

.special-settings li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
}

.guide-visuals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.visual-item {
    text-align: center;
}

.visual-item img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 8px;
}

.visual-item span {
    font-size: 11px;
    color: var(--text-muted);
}

.yellow-bullet {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    margin-right: 10px;
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: 1fr; }
    .cart-pill {
        flex-direction: column;
        border-radius: 20px;
        background: #f3f3f3;
    }
    .cp-left { border-radius: 20px 20px 0 0; box-shadow: none; }
    .cp-sep { width: auto; height: 1px; margin: 0 16px; }
    .cp-right {
        flex-direction: column;
        align-items: stretch;
        padding: 16px 20px;
        gap: 12px;
    }
    .cp-cart-btn { width: 100%; }
}
