/* FLORASFERA MOBILE PRODUCT */
@media (max-width:700px) {

  /* Убираем верхние отступы страницы товара */
  .single-product .ct-container-full {
    padding-top:0!important;
    margin-top:0!important;
  }

  .single-product .hero-section,
  .single-product .hero-section .entry-header {
    padding-top:0!important;
    padding-bottom:0!important;
    margin-top:0!important;
    margin-bottom:0!important;
  }

  /* Хлебные крошки */
  .single-product .ct-breadcrumbs {
    width:calc(100% - 32px)!important;
    max-width:none!important;
    min-height:44px!important;
    margin:0 auto 18px!important;
    padding:10px 14px!important;
    transform:none!important;
    box-sizing:border-box!important;
    overflow-x:hidden!important;
    white-space:nowrap!important;
    border-radius:12px!important;
  }

  .single-product .ct-breadcrumbs::after {
    display:none!important;
    content:none!important;
  }

  /* Основная карточка */
  .single-product div.product {
    width:calc(100% - 32px)!important;
    margin:12px auto 32px!important;
  }

  .single-product .product-entry-wrapper {
    display:flex!important;
    flex-direction:column!important;
    gap:0!important;
  }

  /* Галерея */
  .single-product .woocommerce-product-gallery {
    width:100%!important;
    margin:0 0 24px!important;
    padding:0!important;
  }

  .single-product .woocommerce-product-gallery .flexy-view {
    border-radius:14px!important;
    overflow:hidden!important;
  }

  .single-product .woocommerce-product-gallery .flexy-pills {
    width:100%!important;
    margin-top:12px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }

  .single-product .woocommerce-product-gallery .flexy-pills::-webkit-scrollbar {
    display:none;
  }

  .single-product .woocommerce-product-gallery .flexy-pills > ol {
    display:flex!important;
    flex-wrap:nowrap!important;
    gap:8px!important;
    width:max-content!important;
    min-width:100%!important;
    margin:0!important;
    padding:0!important;
    list-style:none!important;
  }

  .single-product .woocommerce-product-gallery .flexy-pills > ol > li {
    flex:0 0 80px!important;
    width:80px!important;
    min-width:80px!important;
    margin:0!important;
  }

  /* Информация о товаре */
  .single-product div.product .summary {
    width:100%!important;
    margin:0!important;
    padding:0!important;
  }

  .single-product .product_title {
    font-size:34px!important;
    line-height:1.08!important;
    margin:0 0 12px!important;
  }

  .single-product .summary .price {
    font-size:24px!important;
    margin:0 0 20px!important;
  }

  /* Покупка */
  .single-product .summary form.cart {
    padding:18px 0!important;
    margin:0!important;
  }

  .single-product .summary form.cart .ct-cart-actions {
    display:flex!important;
    align-items:stretch!important;
    gap:10px!important;
    width:100%!important;
  }

  .single-product .summary form.cart .quantity {
    flex:0 0 120px!important;
    width:120px!important;
    margin:0!important;
  }

  .single-product .summary form.cart .single_add_to_cart_button {
    flex:1 1 auto!important;
    min-width:0!important;
    min-height:50px!important;
    margin:0!important;
  }

  /* Преимущества */
  .single-product .fs-product-benefits {
    margin:22px 0!important;
    padding:16px 0!important;
  }

  /* FLORASFERA PURCHASE DESIGN V1 */

  .single-product .summary .product_title {
    font-family:Arial,Helvetica,sans-serif!important;
    font-size:25px!important;
    font-weight:700!important;
    line-height:1.22!important;
    letter-spacing:-0.5px!important;
    color:#102f24!important;
    margin:0 0 14px!important;
  }

  .single-product .summary .price {
    font-family:Arial,Helvetica,sans-serif!important;
    font-size:30px!important;
    font-weight:750!important;
    line-height:1.2!important;
    color:#101b16!important;
    margin:0 0 14px!important;
  }

  .single-product .summary .ct-product-divider {
    display:none!important;
  }

  .single-product .summary form.cart {
    padding:8px 0 12px!important;
    margin:0!important;
  }

  .single-product .summary form.cart .ct-cart-actions {
    display:flex!important;
    align-items:stretch!important;
    gap:10px!important;
    width:100%!important;
  }

  .single-product .summary form.cart .quantity {
    flex:0 0 120px!important;
    width:120px!important;
    min-height:54px!important;
    border:1px solid #d9e5dd!important;
    border-radius:14px!important;
    overflow:hidden!important;
    background:#fff!important;
  }

  .single-product .summary form.cart .quantity input.qty {
    font-family:Arial,Helvetica,sans-serif!important;
    font-size:16px!important;
    font-weight:600!important;
    text-align:center!important;
  }

  .single-product .summary form.cart .single_add_to_cart_button {
    flex:1 1 auto!important;
    min-width:0!important;
    min-height:54px!important;
    border-radius:14px!important;
    background:#075c38!important;
    color:#fff!important;
    font-family:Arial,Helvetica,sans-serif!important;
    font-size:16px!important;
    font-weight:700!important;
    box-shadow:none!important;
  }

  .single-product .summary form.cart .single_add_to_cart_button:hover {
    background:#064a2e!important;
  }


  /* FLORASFERA COMPACT CART V2 */

  /* Убираем разделители */
  .single-product .summary .ct-product-divider,
  .single-product .summary .ct-product-add-to-cart::before,
  .single-product .summary .ct-product-add-to-cart::after {
    display:none!important;
    border:0!important;
    content:none!important;
  }

  /* Компактная цена */
  .single-product .summary .price {
    margin-bottom:4px!important;
  }

  /* Убираем лишние отступы вокруг покупки */
  .single-product .summary .ct-product-add-to-cart {
    margin:0!important;
    padding:0!important;
    border:0!important;
  }

  .single-product .summary form.cart {
    margin:0!important;
    padding:4px 0!important;
    border:0!important;
  }

  .single-product .summary form.cart .ct-cart-actions {
    gap:10px!important;
    min-height:46px!important;
  }

  /* Счётчик количества */
  .single-product .summary form.cart .quantity {
    flex:0 0 120px!important;
    width:120px!important;
    height:46px!important;
    min-height:46px!important;
    border-radius:12px!important;
  }

  /* Кнопка покупки */
  .single-product .summary form.cart .single_add_to_cart_button {
    height:46px!important;
    min-height:46px!important;
    padding:0 12px!important;
    border-radius:12px!important;
    font-size:15px!important;
  }

  /* Убираем лишние границы у соседних блоков */
  .single-product .summary .ct-product-add-to-cart,
  .single-product .summary .ct-product-add-to-cart + * {
    border-top:0!important;
  }

  /* Преимущества ближе к корзине */
  .single-product .fs-product-benefits {
    margin:12px 0!important;
    padding:8px 0!important;
  }


  /* FLORASFERA SUMMARY SPACING V3 */

  /* Убираем автоматические интервалы Blocksy */
  .single-product .entry-summary-items {
    gap:0!important;
    row-gap:0!important;
  }

  /* Убираем разделитель после цены */
  .single-product .entry-summary-items > .ct-product-divider {
    display:none!important;
    height:0!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
  }

  /* Название */
  .single-product .entry-summary-items > .product_title {
    margin:0 0 12px!important;
  }

  /* Цена */
  .single-product .entry-summary-items > .price {
    margin:0 0 12px!important;
    padding:0!important;
  }

  /* Блок корзины */
  .single-product .entry-summary-items > .ct-product-add-to-cart {
    margin:0!important;
    padding:0!important;
    border:0!important;
  }

  .single-product .entry-summary-items > .ct-product-add-to-cart form.cart {
    margin:0!important;
    padding:0!important;
    border:0!important;
  }

  /* Убираем возможные границы и разделители */
  .single-product .entry-summary-items > .ct-product-add-to-cart,
  .single-product .entry-summary-items > .ct-product-add-to-cart + * {
    border-top:0!important;
    border-bottom:0!important;
  }

  /* Преимущества */
  .single-product .entry-summary-items .fs-product-benefits {
    margin:18px 0 0!important;
    padding:0!important;
    border:0!important;
  }


  /* FLORASFERA BENEFITS GRID V1 */

  .single-product .fs-product-benefits {
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:6px!important;
    width:100%!important;
    margin:18px 0 12px!important;
    padding:0!important;
    align-items:stretch!important;
  }

  .single-product .fs-product-benefits > * {
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:5px!important;
    min-width:0!important;
    min-height:116px!important;
    margin:0!important;
    padding:10px 4px!important;
    border:1px solid #e8eeea!important;
    border-radius:14px!important;
    background:#fff!important;
    box-sizing:border-box!important;
    text-align:center!important;
    box-shadow:0 2px 10px rgba(0,45,25,.035)!important;
  }

  .single-product .fs-product-benefits > * > :first-child {
    flex-shrink:0!important;
    margin:0 auto 4px!important;
  }

  .single-product .fs-product-benefits > * > :not(:first-child) {
    min-width:0!important;
    max-width:100%!important;
    text-align:center!important;
    overflow-wrap:anywhere!important;
  }

  .single-product .fs-product-benefits strong,
  .single-product .fs-product-benefits b {
    display:block!important;
    font-size:10px!important;
    line-height:1.25!important;
    font-weight:600!important;
  }

  .single-product .fs-product-benefits small {
    display:block!important;
    font-size:9px!important;
    line-height:1.3!important;
    margin-top:3px!important;
    color:#77877e!important;
  }


  /* FLORASFERA PRODUCT DETAILS V1 */

  .single-product .fs-mobile-details {
    width:calc(100% - 32px)!important;
    margin:16px auto 28px!important;
    font-family:Arial,Helvetica,sans-serif!important;
  }

  /* Доставка */
  .single-product .fs-mobile-delivery {
    display:flex!important;
    align-items:center!important;
    gap:12px!important;
    padding:14px!important;
    margin-bottom:18px!important;
    border-radius:18px!important;
    background:#f3f6f4!important;
  }

  .single-product .fs-delivery-icon {
    width:34px;
    height:34px;
    flex-shrink:0;
    color:#075c38;
  }

  .single-product .fs-delivery-icon svg {
    width:100%;
    height:100%;
  }

  .single-product .fs-delivery-text {
    flex:1;
    min-width:0;
  }

  .single-product .fs-delivery-text strong {
    display:block;
    font-size:13px;
    font-weight:600;
    color:#172b21;
  }

  .single-product .fs-delivery-text small {
    display:block;
    font-size:11px;
    line-height:1.4;
    color:#718078;
    margin-top:3px;
  }

  .single-product .fs-delivery-arrow {
    font-size:28px;
    color:#163d2b;
  }

  /* Вкладки */
  .single-product .fs-details-tabs {
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:6px!important;
    margin-bottom:12px!important;
  }

  .single-product .fs-details-tabs button {
    min-width:0!important;
    min-height:44px!important;
    padding:10px 5px!important;
    border:0!important;
    border-radius:24px!important;
    background:#f2f5f3!important;
    color:#25352c!important;
    font-size:12px!important;
    font-weight:500!important;
    text-transform:none!important;
    cursor:pointer;
  }

  .single-product .fs-details-tabs button.active {
    background:#075c38!important;
    color:#fff!important;
    font-weight:600!important;
  }

  /* Содержимое */
  .single-product .fs-details-content {
    padding:18px!important;
    border:1px solid #edf0ed!important;
    border-radius:18px!important;
    background:#fff!important;
    box-shadow:0 3px 15px rgba(0,0,0,.035)!important;
  }

  .single-product .fs-details-panel {
    display:none!important;
    font-size:13px!important;
    line-height:1.65!important;
    color:#26352d!important;
  }

  .single-product .fs-details-panel.active {
    display:block!important;
  }

  .single-product .fs-details-panel p {
    margin:0 0 10px!important;
  }

  .single-product .fs-details-panel p:last-child {
    margin-bottom:0!important;
  }

  .single-product .fs-details-panel table {
    width:100%;
    font-size:11px;
    border-collapse:collapse;
  }

  .single-product .fs-details-panel td,
  .single-product .fs-details-panel th {
    padding:8px 5px;
    border-bottom:1px solid #edf0ed;
    text-align:left;
    overflow-wrap:anywhere;
  }


  /* FLORASFERA REFERENCE TABS V2 */

  /* Скрываем стандартные вкладки WooCommerce */
  .single-product .woocommerce-tabs {
    display:none!important;
  }

  /* Собственный блок информации */
  .single-product .fs-mobile-details {
    display:block!important;
    width:calc(100% - 32px)!important;
    max-width:none!important;
    margin:14px auto 30px!important;
    padding:0!important;
  }

  /* Доставка */
  .single-product .fs-mobile-delivery {
    display:flex!important;
    min-height:66px!important;
    margin:0 0 16px!important;
    padding:12px 14px!important;
    border-radius:18px!important;
    background:#f3f6f4!important;
  }

  /* Три вкладки в одну строку */
  .single-product .fs-details-tabs {
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:6px!important;
    width:100%!important;
    margin:0 0 12px!important;
    padding:0!important;
    border:0!important;
  }

  .single-product .fs-details-tabs button {
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    min-width:0!important;
    min-height:46px!important;
    padding:8px 3px!important;
    margin:0!important;
    border:0!important;
    border-radius:24px!important;
    background:#f2f5f3!important;
    color:#172b21!important;
    font-family:Arial,Helvetica,sans-serif!important;
    font-size:12px!important;
    font-weight:500!important;
    line-height:1.2!important;
    text-transform:none!important;
    box-shadow:none!important;
  }

  .single-product .fs-details-tabs button.active {
    background:#075c38!important;
    color:#fff!important;
    font-weight:600!important;
  }

  /* Белая карточка описания */
  .single-product .fs-details-content {
    margin:0!important;
    padding:18px!important;
    border:1px solid #edf0ed!important;
    border-radius:18px!important;
    background:#fff!important;
    box-shadow:0 4px 18px rgba(0,0,0,.04)!important;
  }

  .single-product .fs-details-panel {
    display:none!important;
  }

  .single-product .fs-details-panel.active {
    display:block!important;
  }


  /* FLORASFERA DETAILS FINAL V3 */

  /* Скрываем стандартный блок WooCommerce */
  .single-product .woocommerce-tabs,
  .single-product .woocommerce-Tabs-panel {
    display:none!important;
  }

  /* Компактное описание */
  .single-product .fs-details-panel {
    font-family:Arial,Helvetica,sans-serif!important;
    font-size:13px!important;
    line-height:1.55!important;
    color:#26352d!important;
  }

  .single-product .fs-details-panel h1,
  .single-product .fs-details-panel h2,
  .single-product .fs-details-panel h3 {
    font-family:Arial,Helvetica,sans-serif!important;
    font-size:16px!important;
    line-height:1.35!important;
    font-weight:700!important;
    margin:0 0 10px!important;
    color:#173c2c!important;
  }

  .single-product .fs-details-panel p {
    font-size:13px!important;
    line-height:1.55!important;
    margin:0 0 10px!important;
  }

  /* Характеристики внутри карточки */
  .single-product .fs-details-panel .woocommerce-product-attributes {
    width:100%!important;
    margin:0!important;
    border-collapse:collapse!important;
    font-size:12px!important;
  }

  .single-product .fs-details-panel .woocommerce-product-attributes th,
  .single-product .fs-details-panel .woocommerce-product-attributes td {
    padding:10px 6px!important;
    border-bottom:1px solid #edf0ed!important;
    font-size:12px!important;
    line-height:1.4!important;
    vertical-align:top!important;
  }

  .single-product .fs-details-panel .woocommerce-product-attributes th {
    width:45%!important;
    font-weight:600!important;
    color:#173c2c!important;
  }

  /* Пустые вкладки не занимают лишнюю высоту */
  .single-product .fs-details-content {
    min-height:0!important;
  }

}

/* Florasfera: мобильные блоки не отображаются на десктопе */
@media (min-width: 701px) {
  body.single-product .fs-mobile-details {
    display: none !important;
  }
}

/* Florasfera: характеристики товара на десктопе */
@media (min-width: 701px) {

  body.single-product .entry-summary .woocommerce-product-attributes {
    width: 100%;
    max-width: 560px;
    border-collapse: collapse;
    table-layout: fixed;
    margin: 12px 0 22px;
    font-size: 14px;
  }

  body.single-product .entry-summary .woocommerce-product-attributes tr {
    display: table-row;
  }

  body.single-product .entry-summary .woocommerce-product-attributes th,
  body.single-product .entry-summary .woocommerce-product-attributes td {
    display: table-cell;
    vertical-align: top;
    padding: 9px 12px;
    border: 0;
    border-bottom: 1px solid #e8ece7;
    background: transparent;
    line-height: 1.5;
  }

  body.single-product .entry-summary .woocommerce-product-attributes th {
    width: 44%;
    color: #68756c;
    font-weight: 500;
    text-align: left;
  }

  body.single-product .entry-summary .woocommerce-product-attributes td {
    width: 56%;
    color: #173f31;
    font-weight: 500;
    text-align: left;
    overflow-wrap: anywhere;
  }

  body.single-product .entry-summary .woocommerce-product-attributes td p {
    margin: 0;
  }

}
