/**
 * @author:	Geert Romijn geertATprocurios.nl
 * @UI: 	webshopApp standard
 * @module: mod_webshop2
 * @about: 	webshop-frontend.css - Main webshop2 file to add layout to its output
 */

/**
 * Adjust inherited grid & layout settings
 */

#webshop-product-search label,
#webshop-product-search-sidebar label,
.webshop-back-link {
    position: absolute;
    top: -999em;
    left: -999em;
}

h2, h3 {
    margin-bottom: .2em;
    line-height: 1.3em;
}

.pbuic-ferr-score-number {
    visibility: hidden;
}

/**
 * Defaults & layout of re-usable classes throughout the webshop
 */

/** Remove the default layout of list elements */
.product-list,
.product-list ul,
.related-product-list,
.per-page,
.webshop-categories,
.webshop-category-tree ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/** Layout of webshop items (eg. categories, products) */
.webshop-categories li,
.product-list li,
.wpdt-summary,
.related-product-list li {
    zoom: 1; /** IE layout fix */
    overflow: hidden; /** Image must stay within borders */
    border: 1px solid #ccc;
    border-color: rgba(0,0,0,0.1);
    background: #fcfcfc;
    background: rgba(252,252,252,0.9);
    border-radius: 2px;
    -webkit-box-shadow: 0 0 1px 0 rgba(0,0,0,0.1);
    -moz-box-shadow: 0 0 1px 0 rgba(0,0,0,0.1);
    box-shadow: 0 0 1px 0 rgba(0,0,0,0.1);
}

.webshop-categories li:hover,
.product-list li:hover,
.related-product-list li:hover {
    border-color: #bbb;
    border-color: rgba(0,0,0,0.3);
    -webkit-box-shadow: 0 0 2px 0 rgba(0,0,0,0.2);
    -moz-box-shadow: 0 0 2px 0 rgba(0,0,0,0.2);
    box-shadow: 0 0 2px 0 rgba(0,0,0,0.2);
}

.product-list li li {
    border: 0;
    background: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

/** Product images */
.product-image {
    float: left;
}

.product-image-container,
.image-container {
    float: left;
    margin: 0 15px 0 0;
}

.product-image-container {
    position: relative;
    z-index: 2; /** place image over favorites star */
}

/** Link element of products is layed out to make the whole item clickable */
.link-to-product,
.link-to-category {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    text-indent: -999em;
}

/** Product prices */

.product-price {
    display: block;
    margin-bottom: .5em;
    text-align: right;
    font-size: 21px;
    color: #333;
}

.product-price .regular {
    font-size: 12px;
    font-weight: normal;
    text-decoration: line-through;
}

/** Product details (in product lists and product details page) */
.product-details-list {
    position: relative;
    display: inline-block;
    white-space: nowrap;
    font-size: .9em;
    color: #777;
}

.product-details-list dt {
    float: left;
    margin-right: .5em;
}

/**
 *     Buttons
 */

/** same styling as buttons in webshop-shopping-cart.css */
button,
div.submit button,
#ws-rc-button-write-review {
    padding: 4px 8px;
    border: 1px solid;
    border-color: #fff #ccc #aaa;
    text-transform: uppercase;
    text-decoration: none;
    font: bold 12px/20px Arial;
    color: #444;
    background: #ddd;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#dddddd), to(#c5c5c5));
    background-image: -webkit-linear-gradient(top, #dddddd, #c5c5c5);
    background-image: -moz-linear-gradient(top, #dddddd, #c5c5c5);
    background-image: -o-linear-gradient(top, #dddddd, #c5c5c5);
    background-image: linear-gradient(to bottom, #dddddd, #c5c5c5);
    -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 0 1px rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 0 1px rgba(0, 0, 0, 0.5);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 0 1px rgba(0, 0, 0, 0.5);
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    -webkit-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset;
    -moz-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset;
    text-shadow: none;
    vertical-align: baseline;
    filter: none;
}

button:hover,
div.submit button:hover,
#ws-rc-button-write-review:hover {
    color: #000;
    background: #ddd;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#dddddd), to(#cccccc));
    background-image: -webkit-linear-gradient(top, #dddddd, #cccccc);
    background-image: -moz-linear-gradient(top, #dddddd, #cccccc);
    background-image: -o-linear-gradient(top, #dddddd, #cccccc);
    background-image: linear-gradient(to bottom, #dddddd, #cccccc);
    -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 0 1px rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 0 1px rgba(0, 0, 0, 0.5);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 0 1px rgba(0, 0, 0, 0.5);
    filter: none;
}

#webshop-product-search button,
#webshop-product-search-sidebar button,
.add-to-shopping-cart,
#ws-review-form button {
    border: 1px solid;
    border-color: #444 #444 #000;
    color: #fff;
    vertical-align: baseline; /** is browser default */
    background-color: #444444;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#666666), to(#444444));
    background-image: -webkit-linear-gradient(top, #666666, #444444);
    background-image: -moz-linear-gradient(top, #666666, #444444);
    background-image: -o-linear-gradient(top, #666666, #444444);
    background-image: linear-gradient(to bottom, #666666, #444444);

    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
    -webkit-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset;
    -moz-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

#webshop-product-search button:hover,
#webshop-product-search-sidebar button:hover,
.add-to-shopping-cart:hover,
#ws-review-form button:hover {
    border-color: #111 #111 #000;
    background-color: #444444;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#444444), to(#363636));
    background-image: -webkit-linear-gradient(top, #444444, #363636);
    background-image: -moz-linear-gradient(top, #444444, #363636);
    background-image: -o-linear-gradient(top, #444444, #363636);
    background-image: linear-gradient(to bottom, #444444, #363636);
    -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 0 1px rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 0 1px rgba(0, 0, 0, 0.5);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 0 1px rgba(0, 0, 0, 0.5);
}

/** Add to shopping cart button */
.add-to-shopping-cart {
    position: relative;
    padding: 1px 7px 2px 2px;
    height: 21px;
    outline: 0 none;
    vertical-align: baseline; /** is browser default */
    /*overflow: hidden;*/
}

.add-to-shopping-cart input {
    float: left;
    width: 3.5em;
    height: 14px;
    font: normal 12px/14px Verdana, Geneva, Helvetica, sans-serif;
    text-align: left;
}

.add-to-shopping-cart a {
    display: block;
    margin-left: 3em;
    white-space: nowrap;
    color: #fff;
    font: bold 12px/21px Helvetica, Arial, sans-serif;
    text-decoration: none;
}

.add-to-shopping-cart .add-to-shopping-cart-link {
    margin-left: 5.5em;
}

.add-to-shopping-cart img {
    position: relative;
    top: 2px;
    right: 2px;
}

/** Product favorites (mark & unmark product from favorites) */

a.product-remove-from-favorites {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 17px;
    height: 17px;
    text-indent: -999em;
    text-decoration: none;
    background: url(../img/favorite.png) no-repeat 0 0;
    -webkit-transition: width, text-indent 0.3s cubic-bezier(.1,0,0,1);
    -moz-transition: width, text-indent 0.3s cubic-bezier(.1,0,0,1);
    -o-transition: width, text-indent 0.3s cubic-bezier(.1,0,0,1);
    transition: width, text-indent 0.3s cubic-bezier(.1,0,0,1);
    overflow: hidden;
}

.product-list .product-add-to-favorites {
    display: none;
}

.product-remove-from-favorites:hover {
    z-index: 3;
    width: auto;
    margin-top: -1px;
    margin-left: -1px;
    padding: 0 5px 0 21px;
    border: 1px solid #000;
    text-indent: 0;
    font: bold 12px/16px Helvetica, Arial, sans-serif;
    color: #fff;
    background-color: #353535;
    background-position: 0 -21px;
}

/**
 * .webshop-breadcrumbs
 */

.webshop-breadcrumbs {
    margin-bottom: 3.2em;
}

.webshop-breadcrumbs dt {
    position: absolute;
    left: -999em;
}

.webshop-breadcrumbs dl {
    width: 100%;
    overflow: hidden;
    clear: both;
    color: #666;
}

.webshop-breadcrumbs dd {
    float: left;
    margin-right: 0;
    padding: 0 0 0 15px;
    line-height: 14px;
    background: transparent url(../img/webshop-arrows.png) no-repeat 0 -590px;
}

.webshop-breadcrumbs a {
    text-decoration: none;
    color: #777;
}

.webshop-breadcrumbs a:hover {
    color: #000;
}

.webshop-breadcrumbs .first {
    padding-left: 0;
    background: none;
}

/**
 * 	.webshop-categories
 */

.webshop-categories li {
    position: relative;
    min-height: 140px;
    margin-bottom: 2em;
    padding: 6px 30px 12px 15px;
}

.webshop-categories a {
    text-decoration: none;
}

.webshop-categories li img {
    display: block;
    float: left;
    margin: 5px 1em 0 0;
}

.category-introduction p {
    margin-bottom: 0;
}

.link-to-category {
    background: transparent url(../img/bg-arrow-r.png) no-repeat 100% 50%;
}

/**
 * 	.webshop-products & .product-list
 */

.webshop-products,
.webshop-frontend {
    margin-top: 2em;
}

/** Category introduction */
.webshop-category-introduction {
    overflow: hidden;
}

/**
 * Hide the category introduction on a category overiew page by default because this was never an option before ticket #32575.
 * Things shouldn't change on existing UI's
 */

body.webshop-category .webshop-category-introduction {
    display: none;
}

.webshop-category-introduction img {
    display: block;
    float: left;
    margin-right: 1em;
}

/** Product lists */
.product-list li {
    position: relative;
    clear: left;
    margin-bottom: 1.5em;
    padding: 10px 15px 12px 17px;
    background-image: none;
}

.product-actions li,
.product-actions li:hover {
    position: static;
    clear: right;
    min-height: 0px;
    margin: 0;
    padding: 0;
    border: 0;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

.product-list h3 {
    float: left;
}

.product-list h3 a {
    color: #000;
    text-decoration: none;
}

.show-product-details {
    position: relative;
}

.product-list .product-price {
    float: right;
    text-align: right;
}

.product-list .product-rating,
.product-list .product-rating div {
    display: inline;
}

.product-rating label {
    display: none;
}

.product-rating .fieldinput {
    margin-left: 0;
}

.product-introduction {
    display: block;
    clear: right;
}

/*.product-list */
.add-to-shopping-cart {
    position: absolute;
    right: 15px;
    bottom: 10px;
}

/*
    Product information dialog (onhover)
    --------------------------------------------------
*/
.product-information-dialog {
    position: absolute;
    z-index: 99;
    padding: 15px;
    border: 1px solid #ccc;
    color: #000;
    background: #fff;
    -moz-box-shadow: 0 5px 10px rgba(0,0,0,0.3), 0 10px 30px rgba(0,0,0,0.5);
    -webkit-box-shadow: 0 5px 10px rgba(0,0,0,0.3), 0 10px 30px rgba(0,0,0,0.5);
    box-shadow: 0 5px 10px rgba(0,0,0,0.3), 0 10px 30px rgba(0,0,0,0.5);
}

.product-information-dialog h3 {
    margin-bottom: 1em;
    border-bottom: 1px solid #ccc;
}

.product-information-dialog img.product-image {
    float: left;
    margin-right: 1em;
}

.product-information-dialog .product-details {
    float: left;
    margin-top: 1em;
}

.product-information-dialog dt,
.product-information-dialog dd {
    float: left;
}

.product-information-dialog dt {
    clear: left;
    margin-right: 1em;
}

.product-close-dialog {
    position: absolute;
    top: 15px;
    right: 10px;
}

/**
 * 	Product detail page
 */

/** Product details elements */
#webshop-product-details {
    clear: left;
}

.product-details {
    position: relative;
}

.product-details .image-container {
    width: 50%;
    margin-right: 1%;
    margin-bottom: 1.5em;
    /*overflow: auto;*/
    overflow: hidden;
}

.wpdt-summary {
    position: relative;
    float: right;
    min-width: 178px;
    max-width: 42%;
    padding: 10px 3% 40px;
    background-image: none;
}

.wpdt-summary .product-rating {
    clear: both;
    overflow: hidden;
    margin-bottom: 1em;
}

.wpdt-summary .product-rating .field_sep {
    display: none;
}

.wpdt-summary .product-rating .field {
    width: auto;
    float: left;
}

.review-count {
    float: left;
}

.wpdt-summary .product-add-to-favorites {
    display: block;
    margin-bottom: 1em;
    padding-left: 14px;
    padding-bottom: .5em;
    border-bottom: 1px solid #eee;
    font-size: 11px;
    text-decoration: none;
    background: url(../img/favorite.png) no-repeat 0 -47px;
}

.product-details .product-details-list {
    display: block;
    overflow: hidden;
    margin: .5em 0 2em;
}

.wpd-bottom {
    clear: both;
    margin-top: 1em;
}

/** Related products */
.related-product-list li {
    position: relative;
    float: left;
    width: 120px;
    margin: 1em 1em 2em 0;
    padding: 10px;
    text-align: center;
    background-image: none;
}

.related-product-list .product-information {
    position: relative;
}

.related-product-list img {
    margin-bottom: 1em;
}

#content .related-product-list h3 {
    font-weight: bold;
    font-size: 12px;
    line-height: 14px;
}

/**
 * .webshop-product-search
 */

.webshop-product-search fieldset {
    margin-bottom: 0;
}

.webshop-searchresults .webshop-product-search fieldset {
    margin-bottom: 1em;
}

#webshop-product-search input,
#webshop-product-search-sidebar input {
    float: left;
    padding: 4px 6px 5px;
    height: 17px;
    border: 1px solid #aaa;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    font: normal 12px/1.5em Verdana, Geneva, Helvetica, sans-serif;
    color: #999;
}

#webshop-product-search input {
    min-width: 21em;
}

#webshop-product-search input:focus {
    color: #000;
}

#webshop-product-search button {
    float: left;
    padding: 0 8px;
    overflow: hidden;
}

#webshop-product-search button,
#webshop-product-search-sidebar button {
    height: 28px;
    font: bold 12px/1.5em Helvetica, Arial, sans-serif;
    text-transform: uppercase;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.webshop-product-search ol.product-list {
    margin-top: 1em;
}

/**
 *     Searchbox in sidebar
 */

#webshop-product-search-sidebar button {
    padding: 4px;
}

#webshop-product-search-sidebar .inner-button {
    display: block;
    width: 18px;
    height: 15px;
    text-indent: -999em;
    background: transparent url(../img/webshop-sprite.png) no-repeat 100% 0;
}


/**
 * Webshop (products) navigation
 */

.webshop-products-nav,
.per-page {
    text-align: center;
}

.webshop-products-nav.top {
    display: none;
}

.pages {
    display: none;
}

.webshop-products-nav ol {
    margin: 1em 0;
    padding: 0;
    border: 0;
    font: 12px/17px Arial, Helvetica, sans-serif;
    background-image: none;
    list-style: none;
}

.webshop-products-nav li,
.per-page li {
    display: inline;
    width: auto;
    margin: 0 5px 0 0;
    padding: 0;
    border: 0;
    background-image: none;
}

.webshop-products-nav a,
.per-page a {
    display: inline-block;
    min-width: 20px;
    padding: 2px 3px;
    margin: 0;
    text-align: center;
    border: 1px solid #eee;
    border-color: rgba(0,0,0,0.1);
    color: #333;
    text-decoration: none;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
    background-color: #eee;
    background: -webkit-gradient(linear, left top, left bottom, from(#f8f8f8), to(#eee)); /** for webkit browsers */
    background: -moz-linear-gradient(top, #f8f8f8, #eee); /** for firefox 3.6+ */
    border-color: #dfdfdf;
}

/** Hover state */
.webshop-products-nav a:hover,
.per-page a:hover {
    color: #000;
    border-color: rgba(0,0,0,0.3);
    -webkit-box-shadow: 0 0 2px 0 rgba(0,0,0,0.2);
    -moz-box-shadow: 0 0 2px 0 rgba(0,0,0,0.2);
    box-shadow: 0 0 2px 0 rgba(0,0,0,0.2);
}

/** Active state */
.webshop-products-nav .current a,
.per-page .current,
.webshop-products-nav .current a:hover,
.per-page .current:hover {
    border-color: #eee;
    font-weight: bold;
    color: #000;
    background: #fff;
    cursor: default;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

/**
 * 	Webshop menu (.webshop-category-tree)
 */

.webshop-category-tree li {
    font-size: 13px;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
    border-color: rgba(0,0,0,0.1);
}

.webshop-category-tree .has-children {
    /*background: url(../img/webshop-arrows.png) no-repeat 100% -65px;*/
}

.webshop-category-tree .active.has-children {
    background: url(../img/webshop-arrows.png) no-repeat 100% -65px;
}

.webshop-category-tree a {
    display: block;
    padding: 8px 16px 8px 0;
    text-decoration: none;
    color: #777;
}

.webshop-category-tree .active.has-children a {
    padding-bottom: 0;
}

.webshop-category-tree .active li a,
.webshop-category-tree .active .active li a,
.webshop-category-tree .active .active .active li a {
    color: #777;
}

.webshop-category-tree .active a:hover,
.webshop-category-tree .active .active a:hover,
.webshop-category-tree .active a,
.webshop-category-tree .active .active a,
.webshop-category-tree .active .active .active a,
.webshop-category-tree .active .active .active .active a {
    color: #000;
}

/** Second level */
.webshop-category-tree ul ul {
    display: none;
    margin-bottom: 0;
    padding: 0;
}

.webshop-category-tree .active ul ul {
    display: none;
    font-size: .9em;
}

.webshop-category-tree .active ul,
.webshop-category-tree .active .active ul {
    display: block;
    margin-bottom: 8px;
}

.webshop-category-tree .active li,
.webshop-category-tree .active.has-children li {
    padding-left: 10px;
    border: 0;
    font-weight: normal;
    background: url(../img/webshop-sprite.png) no-repeat 0 -24px;
}

.webshop-category-tree .active .active {
    background-position: 0 -84px;
}

.webshop-category-tree li li li li {
    font-size: 1em;
}

.webshop-category-tree li li a {
    padding: 1px 0;
}

.variant-panel {
    display: none
}

.variant-panel.shown {
    display: inherit;
}
