/* Stone Catalog Pro - Main Styles */

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
    --stone-primary: #2c3e50;
    --stone-whatsapp: #25D366;
    --stone-text: #333;
    --stone-text-light: #888;
    --stone-border: #e0e0e0;
    --stone-bg: #f5f5f5;
    --stone-white: #fff;
    --stone-radius: 8px;
    --stone-shadow: 0 2px 12px rgba(0,0,0,0.08);
    --stone-transition: 0.3s ease;
}

/* ==========================================================================
   Base / Container
   ========================================================================== */
.stone-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 30px;
}

.stone-container:has(.stone-product-layout) {
	padding: 0;
}

/* ==========================================================================
   Archive Page
   ========================================================================== */
.stone-archive {
    padding: 50px 0 80px;
}

.stone-archive-header {
    text-align: center;
    margin-bottom: 50px;
}

.stone-archive-title {
    font-size: 38px;
    font-weight: 600;
    margin: 0 0 12px;
    color: #222;
}

.stone-archive-desc {
    font-size: 16px;
    color: var(--stone-text-light);
    margin: 0;
}

/* ==========================================================================
   Filters - Custom Select
   ========================================================================== */
.stone-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.stone-select-wrapper {
    position: relative;
    min-width: 160px;
}

.stone-select-wrapper::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #666;
    pointer-events: none;
}

.stone-select {
    width: 100%;
    padding: 12px 40px 12px 20px;
    border: 1px solid var(--stone-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: var(--stone-white);
    color: var(--stone-text);
    cursor: pointer;
    transition: border-color var(--stone-transition);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
}

.stone-select:hover,
.stone-select:focus {
    border-color: var(--stone-primary);
}

/* ==========================================================================
   Products Grid
   ========================================================================== */
.stone-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

@media (max-width: 1200px) {
    .stone-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .stone-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* ==========================================================================
   Product Card
   ========================================================================== */
.stone-card {
    background: transparent;
    border-radius: var(--stone-radius);
    overflow: hidden;
    transition: transform var(--stone-transition);
}

.stone-card:hover {
    transform: translateY(-4px);
}

.stone-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.stone-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--stone-bg);
    border-radius: var(--stone-radius);
}

.stone-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.stone-card:hover .stone-card-image img {
    transform: scale(1.08);
}

.stone-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--stone-transition);
}

.stone-card:hover .stone-card-overlay {
    opacity: 1;
}

.stone-card-view {
    padding: 10px 20px;
    background: var(--stone-white);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    color: var(--stone-text);
    transform: translateY(10px);
    transition: transform var(--stone-transition);
}

.stone-card:hover .stone-card-view {
    transform: translateY(0);
}

.stone-card-content {
    padding: 12px 2px;
    background: transparent;
}

.stone-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.stone-card-title {
    font-size: 15px;
    font-weight: 500;
    margin: 0;
    color: var(--stone-text);
}

.stone-card-sku {
    font-size: 11px;
    color: var(--stone-text-light);
    white-space: nowrap;
}

.stone-card-category {
    font-size: 12px;
    color: var(--stone-text-light);
    margin-top: 4px;
    display: block;
}

.stone-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ddd;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.stone-pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.stone-pagination a,
.stone-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    background: var(--stone-white);
    border: 1px solid var(--stone-border);
    border-radius: 4px;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    transition: all var(--stone-transition);
}

.stone-pagination a:hover {
    border-color: var(--stone-primary);
    color: var(--stone-primary);
}

.stone-pagination .current {
    background: var(--stone-primary);
    border-color: var(--stone-primary);
    color: var(--stone-white);
}

/* ==========================================================================
   Single Product Page
   ========================================================================== */
.stone-single {
    padding: 0 0 60px;
}

/* Breadcrumb */
.stone-breadcrumb {
    padding: 0;
    font-size: 16px;
    color: var(--stone-text-light);
    margin-bottom: 30px;
	position: relative;
}

/* Custom border */
.stone-breadcrumb::after {
  content: "";
  display: block;
  width: 100%;
  max-width: 1500px;
  height: 1px;
  background-color: #eee;
  margin: 0 auto;
}

/* Mobile gap */
@media (max-width: 768px) {
  .stone-breadcrumb::after {
    width: calc(100% - 40px);
  }
}

.stone-breadcrumb a {
    color: var(--stone-text-light);
    text-decoration: none;
    transition: color var(--stone-transition);
}

.stone-breadcrumb a:hover {
    color: var(--stone-primary);
}

.stone-breadcrumb span {
    margin: 0 8px;
    opacity: 0.5;
}

/* Product Layout */
.stone-product-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: start;
}

@media (max-width: 992px) {
    .stone-product-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.stone-gallery {
    position: sticky;
    top: 30px;
}

@media (max-width: 992px) {
    .stone-gallery {
        position: static;
    }
}

.stone-gallery-main {
    position: relative;
    background: var(--stone-bg);
    border-radius: 12px;
    overflow: hidden;
    cursor: crosshair;
}

.stone-gallery-main img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
}

/* Magnifier */
.stone-magnifier {
    position: absolute;
    width: 180px;
    height: 180px;
    border: 3px solid var(--stone-white);
    border-radius: var(--stone-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    background-repeat: no-repeat;
    z-index: 100;
    top: 20px;
    right: 20px;
}

.stone-gallery-main:hover .stone-magnifier {
    opacity: 1;
}

/* Fullscreen Button */
.stone-gallery-fullscreen {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: var(--stone-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 10;
}

.stone-gallery-fullscreen:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Thumbnails */
.stone-gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.stone-thumb {
    flex: 0 0 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s, border-color 0.2s;
    border: 2px solid transparent;
}

.stone-thumb:hover,
.stone-thumb.active {
    opacity: 1;
}

.stone-thumb.active {
    border-color: var(--stone-primary);
}

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

/* ==========================================================================
   Product Info
   ========================================================================== */
.stone-info {
    position: sticky;
    top: 30px;
}

@media (max-width: 992px) {
    .stone-info {
        position: static;
    }
}

.stone-collection {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--stone-text-light);
    margin-bottom: 8px;
}

.stone-title {
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #222;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .stone-title {
        font-size: 26px;
    }
}

.stone-code {
    font-size: 13px;
    color: var(--stone-text-light);
    margin-bottom: 25px;
}

/* ==========================================================================
   Contact Buttons
   ========================================================================== */
.stone-contact-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 35px;
}

@media (max-width: 768px) {
    .stone-contact-buttons {
        display: none;
    }
}

.stone-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid;
}

.stone-btn svg {
    width: 16px;
    height: 16px;
}

.stone-btn-phone {
    background: var(--stone-primary);
    border-color: var(--stone-primary);
    color: var(--stone-white);
}

.stone-btn-phone:hover {
    background: transparent;
    color: var(--stone-primary);
}

.stone-btn-whatsapp {
    background: transparent;
    border-color: var(--stone-whatsapp);
    color: var(--stone-whatsapp);
}

.stone-btn-whatsapp:hover {
    background: var(--stone-whatsapp);
    color: var(--stone-white);
}

/* ==========================================================================
   Specifications
   ========================================================================== */
.stone-section {
    margin-bottom: 25px;
}

.stone-section-title {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--stone-text-light);
    margin: 0 0 12px;
    font-weight: 600;
}

.stone-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 30px;
}

@media (max-width: 768px) {
    .stone-specs-grid {
        grid-template-columns: 1fr;
    }
}

.stone-spec-label {
    font-size: 11px;
    letter-spacing: 0.5px;
    color: var(--stone-text-light);
    margin-bottom: 3px;
}

.stone-spec-value {
    font-size: 15px;
    color: var(--stone-text);
    font-weight: 500;
}

/* Usage Tags */
.stone-usage-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stone-tag {
    padding: 6px 14px;
    background: var(--stone-bg);
    border-radius: 20px;
    font-size: 13px;
    color: #555;
    border: 1px solid #eee;
}

/* Features List */
.stone-features-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.stone-features-list li {
    position: relative;
    padding: 10px 0 10px 18px;
    font-size: 14px;
    color: #444;
    border-bottom: 1px solid #f0f0f0;
}

.stone-features-list li:last-child {
    border-bottom: none;
}

.stone-features-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--stone-primary);
    border-radius: 50%;
}

/* Downloads */
.stone-files {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stone-file {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f8f8f8;
    border-radius: 6px;
    text-decoration: none;
    color: #444;
    font-size: 13px;
    transition: all 0.2s;
    border: 1px solid #eee;
}

.stone-file:hover {
    background: var(--stone-primary);
    border-color: var(--stone-primary);
    color: var(--stone-white);
}

/* ==========================================================================
   Description & Related
   ========================================================================== */
.stone-description {
    margin: 50px 0;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.stone-description h2,
.stone-related h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px;
}

.stone-content {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

/* ==========================================================================
   Product Tabs - Minimal Inline Style
   ========================================================================== */
.stone-tabs-inline {
    margin-top: 25px;
}

.stone-tabs-nav {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.stone-tab-link {
    font-size: 13px;
    color: var(--stone-text-light);
    cursor: pointer;
    transition: color 0.2s ease;
    position: relative;
}

.stone-tab-link:hover {
    color: var(--stone-text);
}

.stone-tab-link.active {
    color: var(--stone-text);
}

.stone-tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--stone-text);
}

.stone-tabs-content {
    padding-top: 5px;
}

.stone-tab-panel {
    display: none;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

.stone-tab-panel.active {
    display: block;
}

.stone-tab-panel img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 10px 0;
}

.stone-tab-panel p {
    margin: 0 0 12px;
}

.stone-tab-panel ul,
.stone-tab-panel ol {
    margin: 10px 0;
    padding-left: 18px;
}

.stone-tab-panel li {
    margin-bottom: 6px;
}

@media (max-width: 600px) {
    .stone-tabs-nav {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .stone-tab-link {
        font-size: 12px;
    }
}

.stone-related {
    margin-bottom: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.stone-related h2 {
    margin-bottom: 30px;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.stone-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--stone-transition);
}

.stone-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.stone-lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.stone-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: transparent;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s;
}

.stone-lightbox-prev,
.stone-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.stone-lightbox-prev {
    left: 20px;
}

.stone-lightbox-next {
    right: 20px;
}

.stone-lightbox-prev:hover,
.stone-lightbox-next:hover {
    background: rgba(255,255,255,0.25);
}

.stone-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

/* ==========================================================================
   Sticky Mobile Buttons
   ========================================================================== */
.stone-sticky-buttons {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: transparent;
    box-shadow: none;
    z-index: 9999;
    padding: 12px 15px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

@media (max-width: 768px) {
    .stone-sticky-buttons {
        display: flex;
        gap: 10px;
    }
}

.stone-sticky-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: var(--stone-radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.stone-sticky-phone {
    background: var(--stone-primary);
    color: var(--stone-white);
}

.stone-sticky-whatsapp {
    background: var(--stone-whatsapp);
    color: var(--stone-white);
}

/* ==========================================================================
   No Products
   ========================================================================== */
.stone-no-products {
    text-align: center;
    padding: 80px 20px;
    color: var(--stone-text-light);
    font-size: 16px;
}

/* ==========================================================================
   Slider Shortcode
   ========================================================================== */
.stone-slider-wrapper {
    position: relative;
    padding: 0 50px;
}

.stone-slider {
    overflow: hidden;
}

.stone-slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.stone-slide {
    flex: 0 0 33.333%;
    padding: 0 10px;
    box-sizing: border-box;
}

.stone-slide-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.stone-slide-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--stone-radius);
    margin-bottom: 15px;
}

.stone-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--stone-transition);
}

.stone-slide:hover .stone-slide-image img {
    transform: scale(1.05);
}

.stone-slide-content {
    text-align: center;
}

.stone-slide-collection {
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--stone-text-light);
}

.stone-slide-title {
    font-size: 16px;
    font-weight: 600;
    margin: 5px 0 0;
    color: var(--stone-text);
}

.stone-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--stone-white);
    border: 1px solid var(--stone-border);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--stone-transition);
    z-index: 10;
}

.stone-slider-prev {
    left: 0;
}

.stone-slider-next {
    right: 0;
}

.stone-slider-nav:hover {
    background: var(--stone-primary);
    border-color: var(--stone-primary);
    color: var(--stone-white);
}

.stone-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.stone-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--stone-border);
    border: none;
    cursor: pointer;
    transition: background var(--stone-transition);
}

.stone-slider-dot.active,
.stone-slider-dot:hover {
    background: var(--stone-primary);
}

/* ==========================================================================
   Grid Shortcode
   ========================================================================== */
.stone-grid-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--stone-radius);
}

.stone-grid-item a {
    display: block;
    text-decoration: none;
}

.stone-grid-image {
    aspect-ratio: 1;
    overflow: hidden;
}

.stone-grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.stone-hover-zoom:hover .stone-grid-image img {
    transform: scale(1.1);
}

.stone-hover-fade:hover .stone-grid-image img {
    opacity: 0.8;
}

.stone-grid-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    opacity: 0;
    transition: opacity var(--stone-transition);
}

.stone-grid-item:hover .stone-grid-overlay {
    opacity: 1;
}

.stone-grid-overlay h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

/* ==========================================================================
   Mobile Responsive
   ========================================================================== */
@media (max-width: 600px) {
    .stone-filters {
        flex-direction: column;
        padding: 0 10px;
    }
    
    .stone-select-wrapper {
        width: 100%;
    }
    
    .stone-slider-wrapper {
        padding: 0 40px;
    }
}

#stone-fullscreen {
    padding: 13px;
}

/* ===============================
   STONE FILTER SELECT – FULL CSS
   Sadece .stone-select-wrapper içini etkiler
================================ */

/* Wrapper */
.stone-select-wrapper {
  position: relative;
  flex: 1;
  max-width: 220px;
}

/* Select reset + custom style */
.stone-select-wrapper select,
.stone-filter-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  width: 100%;
  height: 48px;
  padding: 0 44px 0 16px;

  background-color: #ffffff;
  background-image: none;

  border: 1px solid #dcdcdc;
  border-radius: 10px;

  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: #111;

  outline: none;
  box-shadow: none;
  cursor: pointer;
}

/* Hover */
.stone-select-wrapper select:hover,
.stone-filter-select:hover {
  border-color: #999;
}

/* Focus */
.stone-select-wrapper select:focus,
.stone-filter-select:focus {
  border-color: #000;
}

/* Disabled (olursa) */
.stone-select-wrapper select:disabled,
.stone-filter-select:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
  color: #999;
}

/* Mobile fix (özellikle iOS) */
@media (max-width: 768px) {
  .stone-select-wrapper {
    max-width: 100%;
  }

  .stone-select-wrapper select,
  .stone-filter-select {
    height: 44px;
    font-size: 13px;
  }
	
  .stone-breadcrumb {
    margin-bottom: 20px;
  }
	
  .stone-container {
    padding: 20px;
  }
	
	.stone-single {
		padding-right: 10px;
		padding-left: 10px;
	}
}

body.single-stone_product #footer {
    padding-bottom: 40px;
}

@media (min-width: 769px) {
    body.single-stone_product #footer {
        padding-bottom: 0;
    }
		
}

.stone-products-grid[data-columns="5"] {
    grid-template-columns: repeat(5, 1fr);
}

.stone-products-grid[data-columns="6"] {
    grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 1200px) {
    .stone-products-grid[data-columns="5"],
    .stone-products-grid[data-columns="6"] {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .stone-products-grid[data-columns="5"],
    .stone-products-grid[data-columns="6"] {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* ==========================================================================
   Shortcode Wrapper
   ========================================================================== */
.stone-shortcode-wrapper {
    padding: 40px 0;
}

.stone-shortcode-wrapper .stone-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stone-shortcode-wrapper .stone-filter {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 1px solid var(--stone-border);
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.stone-shortcode-wrapper .stone-products-grid {
    display: grid;
    gap: 25px;
    margin-bottom: 40px;
}

.stone-shortcode-wrapper .stone-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.stone-shortcode-wrapper .stone-pagination a,
.stone-shortcode-wrapper .stone-pagination span {
    padding: 8px 14px;
    border: 1px solid var(--stone-border);
    border-radius: 4px;
    text-decoration: none;
    color: var(--stone-text);
    transition: all 0.2s;
}

.stone-shortcode-wrapper .stone-pagination a:hover {
    background: var(--stone-primary);
    color: white;
    border-color: var(--stone-primary);
}

.stone-shortcode-wrapper .stone-pagination .current {
    background: var(--stone-primary);
    color: white;
    border-color: var(--stone-primary);
}

/* ── Advantages of Quartz — Icon Grid ───────────────────────────────── */
.stone-advantages {
    margin: 0 0 48px;
    padding: 40px 0 0;
    border-top: 1px solid #e8e8e8;
}
.stone-advantages-title {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #1a1a1a;
    margin: 0 0 32px;
}
.stone-advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 16px;
}
.stone-advantage-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 20px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.stone-advantage-item:hover {
    border-color: var(--stone-primary);
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.stone-advantage-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stone-advantage-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--stone-primary);
    transition: transform 0.2s;
}
.stone-advantage-item:hover .stone-advantage-icon svg {
    transform: scale(1.08);
}
.stone-advantage-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #444;
    line-height: 1.4;
}
@media (max-width: 768px) {
    .stone-advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .stone-advantage-item {
        padding: 16px 8px;
    }
    .stone-advantage-icon svg {
        width: 30px;
        height: 30px;
    }
    .stone-advantage-label {
        font-size: 0.67rem;
    }
}

/* ── Technical Specifications Table ─────────────────────────────── */
.stone-tech-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.stone-tech-table tbody tr {
    border-bottom: 1px solid #ececec;
    transition: background .15s;
}
.stone-tech-table tbody tr:last-child {
    border-bottom: none;
}
.stone-tech-table tbody tr:hover {
    background: #fafafa;
}
.stone-tech-table td {
    padding: 10px 8px;
    vertical-align: middle;
    line-height: 1.4;
}
.stone-tech-label {
    color: var(--stone-primary);
    font-weight: 500;
    width: 38%;
}
.stone-tech-value {
    color: #222;
    font-weight: 400;
    width: 32%;
}
.stone-tech-standard {
    color: var(--stone-primary);
    font-size: 0.82rem;
    text-align: right;
    width: 30%;
    opacity: .75;
}
@media (max-width: 600px) {
    .stone-tech-table { font-size: 0.8rem; }
    .stone-tech-label { width: 45%; }
    .stone-tech-value { width: 30%; }
    .stone-tech-standard { width: 25%; font-size: 0.72rem; }
    .stone-tech-table td { padding: 8px 4px; }
}

/* ── Tech Specs Repeater (Admin) ─────────────────────────────────── */

/* ── Technical Specifications — Full Width Section ───────────────── */
.stone-tech-section {
    margin: 0 0 48px;
    padding: 40px 0 0;
    border-top: 1px solid #e8e8e8;
}
.stone-tech-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #1a1a1a;
    margin: 0 0 24px;
}

/* ── Shortcode: Slab Sizes ───────────────────────────────────────── */
.stone-slabsizes-sc-title,
.stone-thickness-sc-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #888;
    margin: 0 0 14px;
}
.stone-slabsizes-sc-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.stone-slabsize-card {
    flex: 1;
    min-width: 140px;
    max-width: 260px;
}
.stone-slabsize-visual {
    position: relative;
    width: 100%;
    border: 1.5px solid #ccc;
    box-sizing: border-box;
}
.stone-slabsize-dim {
    position: absolute;
    bottom: 6px;
    right: 8px;
    font-size: 0.7rem;
    color: #444;
}
.stone-slabsize-lbl {
    position: absolute;
    bottom: 22px;
    right: 8px;
    font-size: 0.65rem;
    color: #888;
}

/* ── Shortcode: Thickness ────────────────────────────────────────── */
.stone-thickness-sc-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.stone-thickness-sc-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.stone-thickness-sc-val {
    font-size: 0.8rem;
    font-weight: 500;
    color: #444;
    min-width: 40px;
}
.stone-thickness-sc-bar {
    display: block;
    height: 2px;
    width: 140px;
    background: #1a1a1a;
    border-radius: 1px;
}

/* ── Shortcode: margin helpers ───────────────────────────────────── */
.stone-advantages-shortcode,
.stone-tech-shortcode,
.stone-slab-content-shortcode {
    margin: 0;
    padding: 0;
    border: none;
}

/* ── [stone_slab_specs] Combined Layout ─────────────────────────── */
.stone-slab-specs-wrap {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    margin: 0 0 40px;
}
.stone-slab-specs-side .stone-slab-specs-left  { flex: 0 0 300px; min-width: 0; }
.stone-slab-specs-side .stone-slab-specs-right { flex: 1; min-width: 0; }

.stone-slab-specs-top { flex-direction: column; gap: 32px; }
.stone-slab-specs-top .stone-slab-specs-left  { width: 100%; }
.stone-slab-specs-top .stone-slab-specs-right { width: 100%; }

.stone-slab-specs-block { margin-bottom: 28px; }
.stone-slab-specs-block:last-child { margin-bottom: 0; }

.stone-slab-specs-block-title {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #999;
    margin-bottom: 14px;
}

/* Thickness bars — proportional widths via inline style */
.stone-thickness-sc-list { display: flex; flex-direction: column; gap: 10px; }
.stone-thickness-sc-row  { display: flex; align-items: center; gap: 14px; }
.stone-thickness-sc-val  {
    font-size: 0.78rem;
    font-weight: 500;
    color: #333;
    min-width: 42px;
    flex-shrink: 0;
}
.stone-thickness-sc-bar {
    display: block;
    height: 1px;
    width: 160px;
    background: #1a1a1a;
    flex-shrink: 0;
}

/* Slab size cards — smaller, horizontal layout */
.stone-slabsizes-sc-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
}
.stone-slabsize-card { min-width: 80px; }
.stone-slabsize-visual {
    position: relative;
    width: 100%;
    max-height: 140px;
    border: 1.5px solid #bbb;
    box-sizing: border-box;
    overflow: hidden;
}
.stone-slabsize-dim {
    position: absolute;
    bottom: 6px;
    right: 7px;
    font-size: 0.62rem;
    color: #555;
    white-space: nowrap;
}
.stone-slabsize-lbl {
    position: absolute;
    bottom: 20px;
    right: 7px;
    font-size: 0.58rem;
    color: #999;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .stone-slab-specs-side { flex-direction: column; gap: 28px; }
    .stone-slab-specs-side .stone-slab-specs-left { flex: none; width: 100%; }
}

/* ── [stone_thickness_sizes] yan yana layout ─────────────────────── */
.stone-thickness-sizes-wrap {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.stone-thickness-sizes-col {
    flex: 1;
    min-width: 160px;
}

/* ── Advantages grid column modifiers (shortcode) ───────────────── */
.stone-advantages-grid-2 { grid-template-columns: repeat(2, 1fr); }
.stone-advantages-grid-3 { grid-template-columns: repeat(3, 1fr); }
.stone-advantages-grid-4 { grid-template-columns: repeat(4, 1fr); }
.stone-advantages-grid-5 { grid-template-columns: repeat(5, 1fr); }
.stone-advantages-grid-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 768px) {
    .stone-advantages-grid-2,
    .stone-advantages-grid-3,
    .stone-advantages-grid-4,
    .stone-advantages-grid-5,
    .stone-advantages-grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Slab Tab Visual — thickness + nested slab sizes ────────────── */
.stone-slab-tab-wrap {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 8px 0 4px;
}
.stone-slab-tab-subtitle {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #999;
    margin-bottom: 14px;
}
.stone-slab-tab-thickness {
    flex: 0 0 auto;
    min-width: 160px;
}
.stone-slab-tab-sizes {
    flex: 1;
    min-width: 0;
    max-width: 320px;
}

/* Nested slab rectangles */
.stone-nested-slabs {
    width: 100%;
}
.stone-nested-outer {
    position: relative;
    width: 100%;
    border: 1.5px solid #aaa;
    box-sizing: border-box;
}
.stone-nested-inner {
    position: absolute;
    top: 0;
    left: 0;
    border-right: 1.5px solid #aaa;
    border-bottom: 1.5px solid #aaa;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .stone-slab-tab-wrap {
        flex-direction: column;
        gap: 24px;
    }
    .stone-slab-tab-sizes {
        max-width: 100%;
    }
}

/* ── Specs visual row (thickness üstte, slab size altta) ─────────── */
.stone-spec-visual-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 4px;
}
.stone-spec-visual-block {
    flex: 0 0 auto;
}
.stone-spec-visual-block--slab {
    width: 100%;
}
.stone-spec-visual-block .stone-spec-label {
    margin-bottom: 12px;
}
.stone-spec-visual-block .stone-thickness-sc-bar {
    width: 120px;
}
@media (max-width: 600px) {
    .stone-spec-visual-block--slab {
        max-width: 100%;
    }
}
/* Nested slab label spacing fix */
.stone-nested-label {
    position: absolute;
    bottom: 8px;
    right: 10px;
    font-size: 0.68rem;
    color: #555;
    text-align: right;
    line-height: 1.6;
    pointer-events: none;
    background: rgba(255,255,255,0.85);
    padding: 2px 4px;
    border-radius: 2px;
}
.stone-nested-label small {
    display: block;
    color: #888;
    font-size: 0.6rem;
}
.stone-nested-label-outer {
    font-size: 0.7rem;
    color: #333;
}
.stone-nested-inner .stone-nested-label {
    bottom: auto;
    right: auto;
    top: 8px;
    left: 10px;
    text-align: left;
}
@media (max-width: 600px) {
    .stone-spec-visual-block--slab {
        max-width: 100%;
    }
}

/* ── Slab Size Cards — Architectural Drawing Style ───────────────── */
.stone-sidebyside-slabs {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    width: 100%;
}
.stone-sidebyside-card {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
/* Width dimension line above card */
.stone-sidebyside-dim-top {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    margin-bottom: 4px;
}
.stone-sidebyside-dim-top-line {
    flex: 1;
    height: 1px;
    background: #999;
    position: relative;
}
.stone-sidebyside-dim-top-line::before,
.stone-sidebyside-dim-top-line::after {
    content: '';
    position: absolute;
    top: -3px;
    width: 1px;
    height: 7px;
    background: #999;
}
.stone-sidebyside-dim-top-line::before { left: 0; }
.stone-sidebyside-dim-top-line::after  { right: 0; }
.stone-sidebyside-dim-top-label {
    font-size: 0.6rem;
    color: #666;
    white-space: nowrap;
    padding: 0 5px;
    letter-spacing: 0.03em;
}
/* Card body with height dim line */
.stone-sidebyside-card-body {
    display: flex;
    align-items: stretch;
    gap: 4px;
    width: 100%;
}
.stone-sidebyside-rect {
    position: relative;
    flex: 1;
    border: 1.5px solid #3a3a3a;
    background: #fff;
    box-sizing: border-box;
    min-height: 60px;
}
/* Height dimension line on right */
.stone-sidebyside-dim-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 20px;
    flex-shrink: 0;
    justify-content: stretch;
}
.stone-sidebyside-dim-right-line {
    flex: 1;
    width: 1px;
    background: #999;
    position: relative;
    margin: 0 auto;
}
.stone-sidebyside-dim-right-line::before,
.stone-sidebyside-dim-right-line::after {
    content: '';
    position: absolute;
    left: -3px;
    width: 7px;
    height: 1px;
    background: #999;
}
.stone-sidebyside-dim-right-line::before { top: 0; }
.stone-sidebyside-dim-right-line::after  { bottom: 0; }
.stone-sidebyside-dim-right-label {
    font-size: 0.58rem;
    color: #666;
    -webkit-writing-mode: vertical-rl;
    writing-mode: vertical-rl;
    -webkit-text-orientation: mixed;
    text-orientation: mixed;
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
    white-space: nowrap;
    padding: 4px 0;
    letter-spacing: 0.03em;
}
/* Format name below card */
.stone-sidebyside-name {
    margin-top: 8px;
    font-size: 0.65rem;
    font-weight: 600;
    color: #444;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.stone-spec-visual-block--slab {
    width: 100%;
}
@media (max-width: 600px) {
    .stone-sidebyside-slabs { flex-direction: row; flex-wrap: wrap; gap: 16px; }
    .stone-sidebyside-card { flex-shrink: 1 !important; min-width: 0 !important; }
}

/* ── Plain text dimension summary below visual ───────────────────── */
.stone-spec-plaintext {
    margin-top: 10px;
    font-size: 0.78rem;
    color: #555;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

/* ── Slab card inner dimension text ─────────────────────────────── */
.stone-sidebyside-inner-dim {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.65rem;
    font-weight: 500;
    color: #666;
    white-space: nowrap;
    letter-spacing: 0.02em;
}