/*
Theme Name: Couponis Child Theme
Author: SpoonThemes
Theme URI: http://demo.spoonthemes.net/themes/couponis/
Author URI: http://themeforest.net/user/spoonthemes
License: GPL 2.0
Template: couponis
License URI: license.txt
Description:  Affiliate & Submitting Coupons WordPress Theme
Version: 1.0
Tags: grid-layout
*/

/* ========================================
   CUSTOMIZAÇÕES MOBILE - PÁGINA DE LOJA
   Layout Compacto do Header
   ======================================== */

/* Ajustar margin-top do main */
.tax-coupon-store main {
  margin-top: 20px !important;
}

/* Estilos para dispositivos móveis (max-width: 768px) */
@media (max-width: 768px) {
  /* HEADER REORGANIZADO */
  .tax-coupon-store .taxonomy-header {
    padding: 15px;
    margin-bottom: 20px;
  }

  .tax-coupon-store .taxonomy-header .store-tax-header-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* Reorganizar elementos com flexbox */
  .tax-coupon-store .taxonomy-header .store-tax-header-wrap > * {
    order: 1;
  }

  .tax-coupon-store .taxonomy-header .post-share {
    order: 2;
  }

  .tax-coupon-store .taxonomy-header a.visit-store {
    order: 3;
  }

  .tax-coupon-store .taxonomy-header .single-tax-action {
    order: 4;
  }

  /* Primeira linha: Logo + Store Info */
  .tax-coupon-store .taxonomy-header .flex-wrap {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
  }

  .tax-coupon-store .taxonomy-header .flex-left {
    flex: 0 0 150px;
    width: 150px;
  }

  .tax-coupon-store .taxonomy-header .store-logo {
    width: 150px;
    height: 150px;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
  }

  .tax-coupon-store .taxonomy-header .flex-middle {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .tax-coupon-store .taxonomy-header h1 {
    font-size: 22px;
    margin: 0;
    line-height: 1.2;
    font-weight: bold;
    text-align: left;
  }

  /* Share Buttons - Alinhados à esquerda */
  .tax-coupon-store .taxonomy-header .post-share {
    display: flex;
    gap: 12px;
    margin: 12px 0;
    justify-content: flex-start;
    flex-wrap: wrap;
    width: 100%;
    order: 2; /* Posiciona após o flex-wrap */
  }

  .tax-coupon-store .taxonomy-header .post-share .share {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    text-decoration: none;
    flex-shrink: 0;
  }

  /* Esconder Facebook, Twitter, LinkedIn e Tumblr */
  .tax-coupon-store .taxonomy-header .post-share .share.facebook,
  .tax-coupon-store .taxonomy-header .post-share .share.twitter,
  .tax-coupon-store .taxonomy-header .post-share .share.linkedin,
  .tax-coupon-store .taxonomy-header .post-share .share.tumblr {
    display: none;
  }

  /* Manter apenas WhatsApp, Telegram e Email */
  .tax-coupon-store .taxonomy-header .post-share .share.whatsapp {
    background: #25d366;
    color: white;
  }

  .tax-coupon-store .taxonomy-header .post-share .share.telegram {
    background: #0088cc;
    color: white;
  }

  /* Botão de Email */
  .tax-coupon-store .taxonomy-header .post-share .share.email {
    background: #ea4335;
    color: white;
  }

  /* Manter apenas o nome da loja, remover descrição */
  .tax-coupon-store .taxonomy-header .store-info {
    margin: 8px 0;
  }

  /* Esconder apenas a descrição no mobile */
  .tax-coupon-store .taxonomy-header .store-info p,
  .tax-coupon-store .taxonomy-header .store-info .small-description,
  .tax-coupon-store .taxonomy-header .store-info .full-description {
    display: none !important;
  }

  /* Quarta linha: Botão Visit Store */
  .tax-coupon-store a.visit-store {
    background: #007cba;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    display: block;
    text-align: center;
    margin: 10px 0;
    transition: background 0.3s ease;
  }

  .tax-coupon-store a.visit-store:hover {
    background: #005a87;
  }

  /* Ações da loja (visualização) */
  .tax-coupon-store .single-tax-action {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
  }

  /* LAYOUT PRINCIPAL - Sidebar abaixo do conteúdo */
  .tax-coupon-store .main-listing .row {
    flex-direction: column;
  }

  .tax-coupon-store .main-listing .col-sm-8 {
    width: 100%;
    margin-bottom: 30px;
  }

  .tax-coupon-store .main-listing .col-sm-4 {
    width: 100%;
  }

  /* Layout dos cupons - remover logo para cards mais compactos */
  .tax-coupon-store .col-sm-6 {
    margin-bottom: 15px;
  }

  /* Remover logo apenas da lista de cupons */
  .tax-coupon-store .main-listing .coupon-image,
  .tax-coupon-store .main-listing .coupon-image img,
  .tax-coupon-store .main-listing .attachment-couponis-logo {
    display: none !important;
  }

  /* Remover container da logo apenas na lista */
  .tax-coupon-store .main-listing .flex-left {
    display: none !important;
  }

  /* Ajustar layout sem logo */
  .tax-coupon-store .main-listing .flex-wrap {
    gap: 15px;
    align-items: center;
  }

  /* Conteúdo do cupom ocupa mais espaço */
  .tax-coupon-store .main-listing .flex-middle {
    flex: 1;
    min-width: 0;
  }

  /* Paginação */
  .tax-coupon-store .pagination {
    text-align: center;
    margin-top: 30px;
  }

  .tax-coupon-store .pagination .page-numbers {
    padding: 8px 12px;
    margin: 0 2px;
    font-size: 14px;
    border-radius: 4px;
  }
}

/* Estilos para telas muito pequenas (max-width: 480px) */
@media (max-width: 480px) {
  .tax-coupon-store .taxonomy-header {
    padding: 12px;
  }

  .tax-coupon-store .taxonomy-header .flex-left {
    flex: 0 0 120px;
    width: 120px;
  }

  .tax-coupon-store .taxonomy-header .store-logo {
    width: 120px;
    height: 120px;
  }

  .tax-coupon-store .taxonomy-header h1 {
    font-size: 20px;
  }

  .tax-coupon-store .taxonomy-header .post-share {
    gap: 8px;
    margin: 10px 0;
    justify-content: flex-start;
  }

  .tax-coupon-store .taxonomy-header .post-share .share {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }

  .tax-coupon-store a.visit-store {
    padding: 10px 15px;
    font-size: 14px;
  }
}
