/**
 *
 * Shop lists
 *
 **/

/* Table of shops */

ul.shop-list {
  list-style: none;
}

ul.shop-list > li {
  margin: 0;

  text-align: center;
  display: inline-block;
  vertical-align: top;
}

ul.shop-list > li a {
  display: inline-block;
}

ul.shop-list > li a p {
  margin: 0.5em 0 0 0;
  line-height: normal;
}

/* All Shops: Alphabetic table per letter */

ul#alphabet-letters,
ul#alphabet-shops
{
  list-style: none;
  padding: 0;
  margin: 0;  
}

ul#alphabet-shops ul.shop-list
{
  margin: 0;
  padding: 0 0 0 15px;
}

/* Line of letters */

ul#alphabet-letters
{
  padding: 0 10px 0 15px;
  margin: 40px 0 50px 0;

}

ul#alphabet-letters > li
{
  text-align: center;
  display: inline-block;
  vertical-align: middle;

  padding: 7px 0 0 5px;
  margin: 0;
}

ul#alphabet-letters > li a
{
  display: inline-block;

  font: bold 16px Arial, "Helvetica Neue", Helvetica, sans-serif;

  width: 35px;
  height: 35px;
  margin: 0px 0 0px 0;
  padding: 9px 0 0 0;

  text-align: center;
  text-transform: uppercase;

  color: #fff;
  border-radius: 50%;
  background-color: #cccccc;
}

ul#alphabet-letters > li a:hover
{
  background-color: #333333;
}

/* The letter as subheading */

ul#alphabet-shops > li > h3
{
  display: block;
  text-align: center;

  margin: 25px 0 25px 0;
  padding: 0;

  font: bold 3em/16px Arial, "Helvetica Neue", Helvetica, sans-serif;
  text-transform: uppercase;

  color: #cacaca;

  _border-bottom: 5px solid #fff;
  background-color: #eaeaea;

  /* simulate outline */

  text-shadow:
   -4px -4px 0 #fff,  
    4px -4px 0 #fff,
   -4px  4px 0 #fff,
    4px  4px 0 #fff;

  transition: font 0.2s linear, color 0.3s linear, background-color 0.2s linear;
}

ul#alphabet-shops > li:hover > h3
{
  color: #888;
  font-size: 6em;
  background-color: #ccc;
}

ul#alphabet-shops > li
{
  padding-bottom: 10px;
  transition: background-color 0.2s linear;
}

ul#alphabet-shops > li:hover
{
  background-color: #eaeaea;
}

/*
  Bugfix: jump target position.
  As we have a fixed menu overlapping jump target
  @see: http://nicolasgallagher.com/jump-links-and-viewport-positioning/;
*/

ul#alphabet-shops > li:target {
   position: relative;
   border-top: 80px solid transparent;
   margin: -80px 0 0;
   background-clip: padding-box;
}

/**
 *
 * Move below to theme
 *
 **/

ul.shop-list > li {
  width: 150px;
  box-sizing: border-box;
  margin: 10px 2px 10px 2px;
}

ul.shop-list p {
  font: normal 1em 'Ropa Sans', 'Source Sans Pro', 'Ubuntu', 'Roboto', Arial, 'Helvetica Neue', Helvetica, sans-serif;
  text-transform: none;
  color: #888;
}

ul.shop-list > li a {
  background: #fff;
  z-index: 1;
}

ul.shop-list > li a img {
  width: 120px;
  height: 48px;
}

/* Shadow effect */

ul.shop-list > li {
  position: relative;
  z-index: 1;
  border: 1px solid #dedede;
  padding: 0;
}

ul.shop-list > li > div {
  background: #fff;
  padding: 8px 8px 3px 8px;
}

ul.shop-list.no-titles > li > div {
  padding-bottom: 8px;
}

ul.shop-list > li:after
{
  position: absolute;
  z-index: -1;
  content: "";

  bottom: 4px;
  right: 5px;
  left: 5px;

  width: auto;
  height: 20px;

  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  border-radius: 0 0 50% 50% / 0 0 7px 7px;
}

/* Hover effect */

ul.shop-list > li
{
  transform: translateZ(0);
  transition-duration: 0.3s;
  transition-property: transform;
}

ul.shop-list > li:hover
{
  border: 1px solid #aaa;

  z-index: 2;
  transform: scale(1.2) rotate(2deg);
}

ul.shop-list > li:hover:after
{
  bottom: 0px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
  border-radius: 0 0 50% 50% / 0 0 20px 20px;
}

/* Simple ones, without wrappers */

ul.shop-list.no-wrappers > li:after
{
  content: none;
}

ul.shop-list.no-wrappers > li {
  background: #fff;
  padding: 10px 10px 10px 10px;
}

ul.shop-list.no-wrappers > li:hover
{
  z-index: 2;
  transform: scale(1.6) rotate(2deg);
}

/* Alphabet */

/* Fix Sahifa stupidity */

ul#alphabet-letters > li,
ul#alphabet-shops > li
{
  list-style: none;
}

